admin privs for prerequisite and uninstall - Advanced Installer Community

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!

jtss
Posts: 15
Joined: Wed Nov 05, 2008 3:23 am

admin privs for prerequisite and uninstall

I'm using AI 8.2 Pro

1. My setup needs elevated admin privs (to install into ProgramFiles), AND one of my prerequisites (a driver setup exe, from another company) also needs elevated admin privs.
When I run on Win7, I end up seeing 2 elevation prompts: one for the drivers, and one for the main part of my setup.
The help seems to say I shouldn't check the "Run only if user has admin privs" system requirement since it might not be elevated at the time of testing.
Note my installation type is "per-machine only (fails if user is not an administrator)" on the Install Parameters page

What is the right way to only see one elevation prompt instead of two?

2. On a related note, when I uninstall my app (which does not uninstall the drivers - user must do that separately), I get an elevation prompt.
When I uninstall those drivers from the control panel, no elevation prompt occurs.
Note both apps install files under ProgramFiles I believe (not 100% sure since there's a third item, a merge module from that vendor, which definitely writes into ProgramFiles)

Is there a way for my uninstall to work without elevation prompt? Or is that because the driver install uses InstallShield?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: admin privs for prerequisite and uninstall

Hello,
What is the right way to only see one elevation prompt instead of two?
You can set the execution level of the package to "Require Administrator" from the Media page -> current build -> Bootstrapper tab. This will enable all prerequisites to inherit the rights of the bootstrapper and show only one elevation prompt.
Is there a way for my uninstall to work without elevation prompt? Or is that because the driver install uses InstallShield?
The behavior should be the same on uninstall as on install. In your case, as the package is "Per machine only", this behavior is normal.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”