Andri Yadi

A geeky technopreneur, trying to do something big with his startup

February 2010 - Posts

  • SharePoint 2010 Solution Installer

    So, you’ve developed a SharePoint solution, contains custom WebParts, Content Types, List Definitions, etc. It’s time to add the solution to SharePoint. Remember this sequences of commands?

    stsadm -o addsolution -filename YourSolution.wsp

    stsadm -o deploysolution –name YourSolution.wsp -url http://deployserver -immediate -allowGacDeployment -allowCasPolicies -force

    It’s quite lengthy process, right? Not to mention if you have to build a script to check system requirement (let’s say you want to specifically deploy to MOSS/SharePoint Server, instead of WSS/SharePoint Foundation), to check whether the SharePoint timer is running, etc. You’ll feel quite pain.

    Luckily, for WSS 3.0 and MOSS 2007, there is a very useful project in CodePlex called SharePoint Solution Installer. However, let’s say you’ve done with WSS 3.0/MOSS 2007, and you are dynamic person like me and want to move on to SharePoint 2010. What’s the option for solution installer to install to SharePoint 2010? Unfortunately, you can’t use that SharePoint Solution Installer to deploy solution to SharePoint 2010.

    What a coincidence, I have the same problem. After searching here and there with no luck, I grab that SharePoint Solution Installer’s source code from here. Download the latest version/changeset, and start to playing around. I’ve manage to make it work with SharePoint 2010 RC, looks like won’t work with the Beta, and don’t know whether it will work with RTM. Download the source code (in Visual Studio 2010) and the binary in this post attachment (SharePoint Solution Installer Binary.zip), or from these links:


    Inside binary folder, you’ll find two main files: Setup.exe and Setup.exe.config,among other resource files.

    How to use it?

    Here’s step by step guide to deploy SharePoint 2010 solution (built using VS 2010) to SharePoint Foundation 2010. You’ll find the same way for deployment to SharePoint Server 2010.

    1. Make sure your solution is built successfully. You know how to do that, right? :)

    2. Make sure you’ve configure Package and Feature. Right click to Project name and click Package.

    image

    If all OK, you’ll find YourSolution.wsp (YourSolution is your solution/project name) in bin\Debug or bin\Release folder under project folder.

    3. Put YouSolution.wsp file in a same folder together with Setup.exe and Setup.exe.config (the two files inside SharePoint Solution Installer binary folder, remember?)

    4. Adjust Setup.exe.config so it will look like this.

    <?xml version="1.0"?>
    <configuration>
        <appSettings>
            <add key="BannerImage" value="Default"/>
            <add key="LogoImage" value="None"/>
            <add key="FeatureScope" value="Site"/>
            <add key="SolutionId" value="7da37f84-b7e1-40f6-a7c6-15c8279817c8"/>
            <add key="FeatureId" value="737ab42b-22b0-4f72-ad9d-896dc33f8f50"/>
            <add key="SolutionFile" value="YourSolution.wsp"/>
            <add key="SolutionTitle" value="My Solution"/>
            <add key="SolutionVersion" value="1.0.0.0"/>
            <add key="UpgradeDescription" value="Upgrades {SolutionTitle} on all frontend web servers in the SharePoint farm."/>
            <add key="RequireDeploymentToCentralAdminWebApplication" value="false"/>
            <add key="RequireDeploymentToAllContentWebApplications" value="false"/>
            <add key="DefaultDeployToAdminWebApplications" value="false"/>
            <add key="DefaultDeployToContentWebApplications" value="false"/>
        </appSettings>
        <startup>
            <supportedRuntime version="v2.0.50727"/>
        </startup>
    </configuration>

    Adjust: SolutionId, FeatureId, SolutionFile, SolutionTitle to fit your need. For more detail about the settings, consult to the documentation at http://sharepointinstaller.codeplex.com/

    5. Run Setup.exe. You’ll run through following wizard.

    image
    Welcome screen

    image
    System checking. As you can see it will check whether SharePoint Foundation 2010 is installed, among other things.

    image
    Choose to which Web Apps/Site collections you want to install the solution. This screen will show if you set FeatureScope to Site in Setup.exe.config.

    image

    image

    image 
    Installation success. Feature is automatically activated.

    That’s it. Your solution is added, deployed, and feature is activated. Good luck trying.

     

    Share this post: | | | |
  • Windows Phone 7 Series, This is The Windows Phone Should Be

    Keduluan mas MVP Windows Mobile posting tentang announcement Windows Phone 7, saya ingin tambahkan sedikit.

    Hari ini, 15 Feb 2010 9AM waktu Barcelona (21.00 WIB), di ajang Mobile World Congress di Barcelona, Microsoft secara publik mem-preview Windows 7 Series untuk pertama kalinya. Lupakan semua yang Anda tahu tentang Windows Mobile, the old Windows 3.0-like mobile OS. Microsoft telah melakukan sesuatu yang sangat ambisius terhadap platform mobile-nya, everything is brand new, from the look and feel down to the codebase. This is how they should do it since a few years ago, sebelum disalip oleh iPhone dan Android.

    Sebagai penggemar berat dan pemilik iPhone, saya pribadi sempat tertegun dan bertepuk tangan ketika pertama kali melihat Joe Belfiore, Vice-President, Windows Phone Program, memperlihatkan tampilan dan meng-highlight fitur-fitur Windows Phone 7. Lupakan jika Anda pernah bertemu dengan Start screen di Windows Mobile sebelumnya, sekarang semua application launcher digantikan oleh live “tiles”, yang dapat di-scroll secara vertikal dan horizontal. Tiles dapat pula berfungsi sebagai link ke People, atau self-contained widgets. Design dan layout UI untuk 7 series ini (disebut sebagai Metro) memang cukup original, nobody has done that before. Albert Shum, sebelumnya designer di Nike, sekarang sebagai Director of Mobile Experience Design di Microsoft, menyebut UI 7 series sebagai pengalaman yang “authentically digital" dan "chromeless". Why? it has no shaded icons, no drop shadows, tanpa background, dan tanpa banyak visual style selain typography yang bersih dan ramping serta animasi-animasi transisi. And yes, finally, Microsoft memberikan support terhadap capacitive multi-touch screen, yes, you’re right, seperti yang ada di iPhone, dan beberapa Android phone terbaru.

    image

    windowsphon7

     

    Yes, the UI is fun, smooth (at least from the video I saw), original. What about other features? Windows Phone 7 membawa konektifitas dan integrasi ke tingkat yang lebih tinggi. Microsoft memperkenalkan konsep hub, yang membawa related content dari web, aplikasi, dan services (Facebook, Windows Live) ke dalam single view yang keren dan mudah. Ada 6 jenis hub yang di-support: People, Pictures, Games, Music + Video, Marketplace, dan Office. Jangan heran jika nanti contact dan foto di Facebook Anda tiba-tiba muncul di tampilan People, that’s not magic. Itulah fungsionalitas hub People. Hey, it supports collaboration using SharePoint workspace in Office hub, nice!!!

    Did I mentioned 7 series includes Bing search, and Bing is a lot better this time. Bahkan ada button yang dedicated untuk mengaktifkan Bing search. Internet Explorer is way better, finally. Multi-touch untuk pinch to zoom cukup cepat, rendering font untuk skala besar juga cepat dan halus. Since it’s chromeless, alias windowless, Anda bisa browsing dengan IE secara full screen.

    2010-02-15win7phonepr-3-1266243857

     

    Tanpa banyak bicara lagi, silahkan lihat video announcement selengkapnya di: http://www.microsoft.com/presspass/presskits/windowsphone/videoGallery.aspx. Pilih title “Steve Ballmer on Microsoft's Mobility Strategy”.

    Beberapa review dan hands-on:

     

    Mau beli? Tenang, masih lama bos…tunggu musim liburan Natal 2010 nanti. You are developer? Itchy to get started developing app for Windows Phone 7? Tunggu detailnya nanti di event MIX10, 15 – 17 Maret 2010, di Las Vegas.

    Share this post: | | | |