SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

How to create an installation package?

Last post 01-17-2011 9:01 AM by alicealicia. 29 replies.
Page 2 of 2 (30 items) < Previous 1 2
Sort Posts: Previous Next
  • 12-22-2010 1:23 AM In reply to

    Re: How to create an installation package?

    Matt,

    How about the "Adding Features" and "Adding Dialogs" section? Do I need to follow and include the section? I have created the vb.net program, and where can find the library files?

    I really need your guide for this. I try to build the setup after the "Adding Files" by clicking on the test.exe in the /bin/Debug folder. And it seems not working.

    I really need your help. Please do assist me.

     

    Thanks

  • 12-22-2010 11:19 AM In reply to

    Re: How to create an installation package?

    Yes you should follow those sections. In the Adding Features you should use your own component IDs, for example:

      <!-- Features to install --> 
    <Feature Id="Complete" Level="1">
    <Feature Id="YourFeatureNameHere" Level="1">
    <ComponentRef Id="testExeComponentID"/>
    </Feature>
    </Feature>
  • 12-24-2010 2:46 AM In reply to

    Re: How to create an installation package?

    Hello Matt,

    In my setup.wxs, I have created the following:

    <?xml version="1.0"?>
    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
        <Product Id="8F3A52FE-BB54-4BC9-953C-7173D16AA96D"
          Name="WQIS Installer"
          Language="1033"
          Version="1.0.0.0"
          Manufacturer="ic#code">
          <Package Id="A970C90A-3EFD-4121-B92D-2D0454643B38"
           Description="Installs WQIS to KWB"
           Comments="Comments" InstallerVersion="200"
           Compressed="yes" />
          <!--
           Source media for the installation. 
            Specifies a single cab file to be embedded in the installer's .msi. 
          -->
          <Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high" />
          <!-- Installation directory and files are defined in Files.wxs -->
          <Directory Id="TARGETDIR" Name="SourceDir"/>
          <!-- Features to install -->
          <Feature Id="Complete" Level="1">
           <Feature Id="WQISFeature" Level="1">
            <ComponentRef Id="testExeComponentID"/>
           </Feature>
          </Feature>
          <!-- Use Wix UI library -->
          <Property Id="WIXUI_INSTALLDIR">INSTALLDIR</Property>
          <UIRef Id="WixUI_InstallDir"/>
         </Product>
    </Wix>

    In the Files.wxs, I have the following:

    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
        <Fragment>
            <DirectoryRef Id="TARGETDIR">
                <Directory Id="WQISProgram" Name="WQIS">
                    <Directory Id="Debug" Name="Debug">
                        <Component Guid="842EC54B-3D78-49A0-9416-405370E384D0" Id="MailExe" DiskId="1">
                            <File Source="..\..\mail\mail\bin\Debug\mail.exe" Name="mail.exe" Id="mail.exe" KeyPath="yes" />
                        </Component>
                    </Directory>
                </Directory>
            </DirectoryRef>
        </Fragment>
    </Wix>

    So, now in the "Adding Dialogs", in the Add Wix Library, for my case, I developed the program using vb.net, and where can I find the Wix library?

    Please do guide me on this.

  • 12-24-2010 2:51 AM In reply to

    Re: How to create an installation package?

    Matt,

    I am very blur from the tutorial you gave. I really missing in no way. For "Adding Features",

    <Feature Id="Complete" Level="1">
           <Feature Id="WQISFeature" Level="1">
            <ComponentRef Id="testExeComponentID"/>
           </Feature>
    </Feature>

    The feature Id, I just create whatever, in my case, I put WQISFeature, and also the componentRef Id, I follow whatever given by you. Now I don't know how the actual flow goes. I am really blur when create the installation file.

    Is there any simplest way to do so. Any freeway to do this?

    Can create the installer for project that I have developed in SharpDevelop in Visual Studio Software?

    Please help me.

  • 12-24-2010 5:58 PM In reply to

    Re: How to create an installation package?

    You need to replace the example ComponentRef ID with the one you are using which is "MailExe".

  • 12-27-2010 8:27 AM In reply to

    Re: How to create an installation package?

    Now, I am at the "Adding Dialogs". For my case, how do I get wixlib as shown in the tutorial? Can I skip this?

  • 12-27-2010 12:07 PM In reply to

    Re: How to create an installation package?

    You need to add the WiX UI to your project otherwise the standard WiX dialogs will not be available. The tutorial is showing its age since WiX no longer uses libraries for its UI. Instead it uses extensions.

    Select WiX Extensions in your Projects window, right click and select Add WiX Extension. Then browse to the bin\Tools\Wix folder where you installed SharpDevelop. Select the WixUIExtension.dll and click the Open button.

    Then you should be finished. You just need to build your installer and try it out.

  • 12-28-2010 1:14 AM In reply to

    Re: How to create an installation package?

    Matt,

    When I click on Build wqisSetup, I got the following warning messages:
    Line 1   ICE74: The UpgradeCode property is not authored in the Property table. It is strongly recommended that authors of installation packages specify an UpgradeCode for their application. (LGHT1076) - C:\Users\pc267\AppData\Local\Temp\8o6evymy\wqisSetup.msi:1

    Line 3  The Product/@UpgradeCode attribute was not found; it is strongly recommended to ensure that this product can be upgraded. (CNDL1075) - C:\Users\pc267\Documents\SharpDevelop Projects\wqisSetup\wqisSetup\Setup.wxs:3

    Line 8  The Product/@UpgradeCode attribute was not found; it is strongly recommended to ensure that this product can be upgraded. (CNDL1075) - C:\Users\pc267\Documents\SharpDevelop Projects\wqisSetup\wqisSetup\Setup.wxs:3

    How to solve the messages?

    And when I click on Run, and select the checkbox "I accept the terms in the License Agreement", and click next, I got the error message "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package, The error code is 2343". And it cannot install.

    How to solve this?

  • 12-28-2010 3:21 PM In reply to

    Re: How to create an installation package?

    To fix the warnings the message is telling you to add the UpgradeCode attribute to the Product element.

    <Product UpgradeCode=""

    Add the attribute as shown above then click inside the double quotes and select Edit | Insert | Insert New GUID.

    Without seeing what is in your project it is difficult to work out what the 2343 error means. To get more information you can run msiexec from the command line and create a log file.

    msiexec /i Example.msi /L* logfile.txt

    Replace Example.msi with the name of your msi file.

  • 12-29-2010 1:09 AM In reply to

    Re: How to create an installation package?

    Matt,

    Where to put the code? In the Setup.wxs or Files.wxs? At which section I should put it? At the top or at the bottom?

    Please help me on this.

  • 12-29-2010 10:52 AM In reply to

    Re: How to create an installation package?

    Add the UpgradeCode attribute to your Product element in Setup.wxs.

  • 01-15-2011 8:19 AM In reply to

    Re: How to create an installation package?

    Matt,

    To create the installer for my vb.net application, can I use the guide from http://community.sharpdevelop.net/blogs/mattward/archive/2006/09/17/WixIntegration.aspx.

    Is this same way as http://community.sharpdevelop.net/blogs/mattward/archive/2007/01/08/CreatingAnInstallerWithSharpDevelop.aspx?

     

  • 01-15-2011 12:40 PM In reply to

    Re: How to create an installation package?

    Matt,

    For my Setup.wxs, the code is as below:
    <?xml version="1.0"?>
    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
        <Product Id="B611070D-DBC9-4ACC-8A38-17A294863B58"
            Name="WQIS Installer"
            Language="1033"
            Version="1.0.0.0"
            UpgradeCode="BAD5BF1D-557C-44CF-82FA-F9512775D5F3"
            Manufacturer="">
            <Package Description=""
                Comments= "Comments"
                InstallerVersion="200"
                Compressed="yes"
            />
          <!-- Features to install -->
            <!-- Features to install -->
              <Feature Id="Complete" Level="1">
               <Feature Id="YourFeatureNameHere" Level="1">
                <ComponentRef Id="WQISExe"/>
               </Feature>
              </Feature>
              <!-- Use Wix UI library -->
              <Property Id="WIXUI_INSTALLDIR">INSTALLDIR</Property>
              <UIRef Id="WixUI_InstallDir"/>
            <Product UpgradeCode="22656B05-3603-46CB-8062-CE3AF17BE635"></Product>
        </Product>
    </Wix>


    And when I click Build -> Build WQIS.Setup,  I still got the following error message at line 3
    The Product/@Manufacturer attribute's value cannot be an empty string.  If you want the value to be null or empty, simply remove the entire attribute. (CNDL0006)

    Can I know what's wrong with the code? Please help.

     

  • 01-15-2011 12:42 PM In reply to

    Re: How to create an installation package?

    Can you please provide a guide for creating the installer in SharpDevelop 3.2 for vb.net project.

    I have try several times but still not working.

    I really need your help.

  • 01-17-2011 9:01 AM In reply to

    Re: How to create an installation package?

    Can anyone help on this matter? Your help is much appreciated.

Page 2 of 2 (30 items) < Previous 1 2
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.