Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2009
    Posts
    5

    How to: Use a Visual Studio Dependency Bootstrapper instead of SUF Modules

    Being new to SUF I was running into issues using the Dependency Modules. I found they did not work as I expected and wished I could use the bootstrapper that Visual Studio produces to check for dependencies.

    After some testing, I found out I could. Here's how I did it:

    1. Create a new Setup Project in Visual Studio

    2. Set your Prerequisites as you normally would

    3. Build your Setup Project, which produces an exe (bootstrapper) and an msi (your installer). For this example these will be called setup.exe and setup.msi

    4. Delete your newly created msi file. Open notepad and save a blank text file using "Save As" (very important, Save As lets you change the file extension)

    5. Use "Save As" and save as "setup.msi" (or whatever you named your project)

    6. Now you have a setup.exe (real bootstrapper) and a setup.msi (which is really just a blank text file)

    7. In SUF, add both of these files to your Primer Files.

    8. In your Actions screen add the following code to the "On Startup" section:
    Code:
    Shell.Execute("%TempLaunchFolder%\\setup.exe", "open", "/passive", "%TempLaunchFolder%", SW_SHOWNORMAL, true);
    That's it. The command line argument "/passive" should suppress the error message that the msi file is not valid, yet still show the prompts letting the user know certain dependencies are required.

    I just did a build that required .NET 3.5 SP1 and Crystal Reports for VS2008 and this method worked like a charm.


  2. #2
    Join Date
    Apr 2007
    Posts
    3
    Many thanks, I just spent the last 8 hours researching and looking on line for this trying different things. I did your method and bam not even 30 seconds of work. All done works perfectly.

    WHAT A LIFE SAVER!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts