We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Jim Beveridge
Posts: 32
Joined: Wed May 10, 2006 10:54 pm

Per-user installation questions

[Background: Advanced Installer 4.9.2, registered Pro version.]

I am creating an MSI package that will run on all versions of Windows from Windows 98 through Windows Vista. It must run without privilege escalation on Vista, so I've set the Installation Type to "per-user only."

I need help with three problems:

1. How do I tell Advanced Installer to launch my app when installation is complete? Since I checked "Limit to basic user interface", the checkbox for "Launch Your Application" in the ExitDialog appears to have no effect, even if I set "Checked by default."

2. Since this is a per-user installation, I've set the Application Folder to be [LocalAppDataFolder]\[ProductName]. However, it would be better to install to Program Files on Win9x. How do I do this?

3. I can't use AI's update utility because my application has some peculiar logic for when to upgrade. To upgrade, my application downloads the new MSI file and launches MSIEXEC. This creates a potential race condition because it's possible, (although unlikely) that MSIEXEC will try to replace the EXE before the original EXE has exited. Is there any solution to this without writing a helper application?

Thank you in advance.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Jim,

1. Since you run the package with no UI you need to use a custom action to launch the file. In the "Custom Actions" page create a "Add Predefined Custom Action->Launch file or Open URL" under "Install Finalize". In the "Command Line" field "Edit..." the path to your file. Enclose it into quotes.

2. Let the default value (set by AI) for the "Application Folder" field. This will be used when installing to Win9x,...,WinXp. For Vista create a "Property Set With Formatted" custom action scheduled under "InstallExecuteSequence->CostFinalize". Use following options for the custom action:

Property Name: APPDIR (application folder)
Formatted Text: [LocalAppDataFolder][ProductName]
Execution Condition: VersionNT = 600 (will be executed only on Vista)

3. Let me know if I don't understand correctly. The application that makes the update tries to update itself. If this is the problem then the update application must copy himself to a temp location and update from there. That is my suggestion.

Hope this helps.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”