I'm not sure if this is a bug or not, but it tripped me up a bit. I was trying the batch file regsvr32 code as described by Daniel here: http://www.advancedinstaller.com/forums ... 8&start=30
I used the "LaunchFile" custom action (deferred) to launch a batch file that runs regsvr32 MyDll.dll. I noticed the following:
(In all cases, I set the "Working directory" to [APPDIR])
“Run as Administrator” AND “Run under the LocalSystem account with full privileges (no impersonation)”:
Success. Working directory correctly set.
NOT “Run as Administrator” AND “Run under the LocalSystem account with full privileges (no impersonation)”:
Success. Working directory correctly set.
NOT “Run as Administrator” AND NOT “Run under the LocalSystem account with full privileges (no impersonation)”:
Failure. Working directory correctly set.
“Run as Administrator” AND NOT “Run under the LocalSystem account with full privileges (no impersonation)”:
Failure. An additional UAC prompt is displayed. The working directory is not set.
It sounds like the first three scenarios are working as expected. The fourth scenario seems strange:
- Is another UAC prompt expected here?
- After acknowledging the UAC prompt, the registration fails.
- The working directory is not being set to APPDIR.
FOLLOW US
Get the latest news in Application Packaging