Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Yes, you can create a self-extracting installer containing both MSI and the setup.exe bootstrapper file. </p> <p>I think it is possible to do that with WinZip, or you can use IExpress coming with Windows. Here is a guide how to create <a href="http://www.petri.co.il/create_executable_with_iexpress.htm" rel="noreferrer">a self-extracting executable with IExpress</a>. You can either use the IExpress wizard or manually write a config file which you then can execute in the post-built step of your setup project, e.g. by calling</p> <pre><code>IExpress /N /Q MySetup.sed </code></pre> <p>A sample configuration file would look like this:</p> <pre><code>[Version] Class=IEXPRESS SEDVersion=3 [Options] PackagePurpose=InstallApp ShowInstallProgramWindow=1 HideExtractAnimation=1 UseLongFileName=1 InsideCompressed=0 CAB_FixedSize=0 CAB_ResvCodeSigning=0 RebootMode=N InstallPrompt=%InstallPrompt% DisplayLicense=%DisplayLicense% FinishMessage=%FinishMessage% TargetName=%TargetName% FriendlyName=%FriendlyName% AppLaunched=%AppLaunched% PostInstallCmd=%PostInstallCmd% AdminQuietInstCmd=%AdminQuietInstCmd% UserQuietInstCmd=%UserQuietInstCmd% SourceFiles=SourceFiles [Strings] InstallPrompt= DisplayLicense= FinishMessage= TargetName=MySetup.exe FriendlyName=My cool application AppLaunched=CMD /C setup.exe PostInstallCmd= AdminQuietInstCmd= UserQuietInstCmd= FILE0="setup.exe" FILE1="MySetup.msi" [SourceFiles] SourceFiles0= [SourceFiles0] %FILE0%= %FILE1%= </code></pre> <p>There is a little caveat however with the self-extracting installer scenarios. Due to another fix these scenarios are <a href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=369138" rel="noreferrer">broken</a> with the bootstrapper (setup.exe) created by VS2008 SP1. For a workaround see the following thread: <a href="http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/3731985c-d9cc-4403-ab7d-992a0971f686/?ffpr=0" rel="noreferrer">http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/3731985c-d9cc-4403-ab7d-992a0971f686/?ffpr=0</a>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload