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!

andy.garratt
Posts: 7
Joined: Tue Dec 08, 2009 8:24 pm

Custom Action to run an Exe but as the user and not system

Hi,

I wonder is anyone can help?

I'm trying to make a silent installer and I want it to run the application at the end but as the logged in user and not as SYSTEM.

If I trigger something on the finish screen this is fine but in a silent installer with only a basic interface this is not possible and it seems that whenever I use a Custom Action the exe runs as SYSTEM and not the logged in user.

Any ideas anyone :)

Andy
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Custom Action to run an Exe but as the user and not system

Hi Andy,

You can launch your exe using an Installed Custom Action, placing it after the InstallFinalize Standard Action (under InstallExecuteSequence), from the Custom Actions page.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
andy.garratt
Posts: 7
Joined: Tue Dec 08, 2009 8:24 pm

Re: Custom Action to run an Exe but as the user and not system

Hi Gabriel,

The problem is that this will start the exe as the SYSTEM user and not the logged in user.

Andy
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Custom Action to run an Exe but as the user and not system

Hi Andy,

Attached is an .aip project file. The installer will elevate, then launch Notepad as the logged in user. I have tested this on a limited (non-admin) user account on Vista.

Regards,
Gabriel
Attachments
test.zip
(127.07 KiB) Downloaded 486 times
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”