I'm having trouble solving a problem with user privileges.
Our application updates selected dll files after initially
being installed. The installer allows the user to install to
[ProgramFilesFolder], but when the user starts the app, the
files can't be updated.
If I can determine that the user doesn't have admin
permissions, then I would like to change the default path,
shown in the Location dialog, to [AppDataFolder][ProductName].
* Can someone point me to a VBS or JS function, or steps for
determining a user's permissions. Then I can set a property,
to the best default install dir.
* Part two, will changing the TARGETDIR before the Location
dialog is displayed, change what is displayed in the input
field? I can use Orca to move a custom action from the
InstallExeecuteSequence to InstallUISequence.
Of course I could write my own Location dialog, but writing a
directory browser doesn't look like fun, and it would just
duplicate the nice browser that is already in Advanced
Installer. Or maybe there are better solutions for this
problem?
FOLLOW US
Get the latest news in Application Packaging