Custom Actions - Start exe with Commandline - 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!

jsheldon
Posts: 10
Joined: Mon Feb 15, 2010 11:07 pm

Custom Actions - Start exe with Commandline

I have an application that needs to be installed, it can be run any time in the install process.

I install a folder and put an application in it.

I have created a "New Installed Custom Action" in InstallExecuteSequence -> InstallFiles with these settings
-Source Path: APPDIR\downloads\HASP SRM Run-time Command-line 5.95 Installer.exe
-Surce Type: Executable (*.exe)
-Command Line:
-Execution Properties: Asynchronous execution, wait for return code at the end of the sequence
-Execution Options: Deferred
-Scheduling Options: Always Execute
-Execution Condition: &_Drivers = 3

This is the only thing in this inst file. It's an isolated test to get the application to run.

The main problem is that the exe will only start in XP. It does not work with Vista/Win 7.
I have attached the aip file for examination.
Attachments
test.aip
(8.96 KiB) Downloaded 381 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Actions - Start exe with Commandline

Hello,

The .EXE doesn't seem to have enough rights to run in Windows 7. Can you please set your custom action as "Deffered, with no impersonation" and see the outcome?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jsheldon
Posts: 10
Joined: Mon Feb 15, 2010 11:07 pm

Re: Custom Actions - Start exe with Commandline

That fixed it. Thanks!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Actions - Start exe with Commandline

You're welcome, glad to help.

Return to “Common Problems”