Announcement

Collapse
No announcement yet.

2 Questions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 2 Questions

    Hi, I'm new to Windows Installer and have 3 questions. These are probably obvious, but I couldn't find an answer anywhere in the helpfiles or the first 5 pages of the forum.

    1. I want to create a folder in the end user's My Doccuments folder. I went to the folders dialog and clicked Other Folders, but My Doccuments wasn't on the list. The closest thing I could find was PersonalFolder. How would I create the My Doccuments folder in this dialog?

    2. I want to add a registry key in the registry. In Autoplay Media Studio I type "Software\\LucasecSoftware\\LQP". When I type this into setup factory it tells me when I build it is invalid. How would I type this subkey in Setup Factory for WI?

    3. How can I create a checkbox that will run the program when you click finish after the program is installed?

    Thanks!

  • #2
    Originally posted by lucasecpc View Post
    1. I want to create a folder in the end user's My Doccuments folder. I went to the folders dialog and clicked Other Folders, but My Doccuments wasn't on the list. The closest thing I could find was PersonalFolder. How would I create the My Doccuments folder in this dialog?
    PersonalFolder is the one. That's the name used for the "My Documents" in msi.

    2. I want to add a registry key in the registry. In Autoplay Media Studio I type "Software\\LucasecSoftware\\LQP". When I type this into setup factory it tells me when I build it is invalid. How would I type this subkey in Setup Factory for WI?
    You don't need to escape the backslashes (or surround it with quotes), so just use:

    Software\LucasecSoftware\LQP

    3. How can I create a checkbox that will run the program when you click finish after the program is installed?
    This one's a bit trickier. Basically you need to:
    1. Go to the Dialogs editor and switch to Advanced mode.
    2. Expand the "Install Completed Successfully" branch, and select the ExitDialog dialog.
    3. Add a checkbox control, and change its property name from NEW_CHECK_PROPERTY to LAUNCH_APP_ON_EXIT.
    4. Right-click on the "Finish" button and choose Edit.
    5. On the Published Events tab, add a DoAction event. In the Arguments field, type "LaunchApplication" (no quotes). For a DoAction event, the argument is the name of the custom action you want to perform. In the Condition field, type LAUNCH_APP_ON_EXIT.
    6. Click OK until you get back to the main window, then choose Actions > Custom Actions from the program menu.
    7. Add a Run Executable action. Set the Location to "Installed with product" and select the executable file that you want to run.
    8. On the Attributes tab, change the action's ID to LaunchApplication. Set Scheduling to "Immediate" and change Return to "Async no wait."
    9. Click OK a couple times, and you're done.
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Thanks for the answers

      All of your tips worked fine, but when you see the finished uninstall screen, the Run Program box appears. Is there a way to make this box only show up after install?

      Comment


      • #4
        Originally posted by lucasecpc View Post
        Thanks for the answers

        All of your tips worked fine, but when you see the finished uninstall screen, the Run Program box appears. Is there a way to make this box only show up after install?
        Ah, yes. You need to add a condition to that control to conditionally hide it when doing an uninstall or reinstall.

        I'm not sure if this is the best way to do it, but you could try this: on the Conditions tab of the Checkbox Properties, add a "hide" action with the condition "Installed" (without quotes) so it will hide that control if the product is already installed.

        Or you might need to do a "show" action with the condition "Not Installed" -- it depends whether you want the checkbox to appear on reinstalls, I think. (?)
        --[[ Indigo Rose Software Developer ]]

        Comment


        • #5
          Good Post - Thank you:yes

          Comment

          Working...
          X