CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Start exe from button

HI

I want to start an exe during installation when user push a button, but i cant figure out which custom action to use....


Allright i get it ro run but ONLY when using run and log....
exe has a return code of 1


/Carl
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Start exe from button

Hello Carl,

Please follow our Execute custom action on button push tutorial steps in order to achieve what you want.
You should launch your exe file on button push using a "Launch attached file" custom action without sequence.

Please keep in mind that Windows Installer evaluates return codes different from 0 as error return codes. So, if you want your custom action to succeed then you should modify your exe to return 0 (success) or you should ignore the return code using "Execution Properties" options.
Allright i get it ro run but ONLY when using run and log....
exe has a return code of 1

I don't fully understand what you mean. Can you give us more details about this?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: Start exe from button

Looks like what ive done, attached custom action without sequence and synchronize and ignore result.

it did run a few times but only with run and log...

return code 1 is in the log.....

I do not know if the exe actually returns anything, but its gui never comes up when using run instead of run and log.

Exe takes one parameter.


Think i figuered it out, exe had a dependency of a dll file, adding the dll as a temporary file seems to work.....

Return to “Common Problems”