Running EXE program from installer - 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!

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

Running EXE program from installer

Hi, im evalutaing your version of Advanced Installer and so far it looks good ... I havent made any installs in about 10 years time or so.

But since im rather new at this there are a couple of things i would need help with:

1. Run a program EXE file from the installer, and yes ive tried custom actions ... but maybe im doing something wrong?

2. Would like to install a service, tried the services page.... the service might not be windows standard, its installed like this: xxdbi.exe /install /nointeract from a wise script. But i cant get it to work with the parameters in Advanced Installer.

Lets start with this... as im trying to "copy" a installer from a wise script.

Regards
Carl
CiprianComsa
Posts: 110
Joined: Thu Aug 19, 2010 10:11 am
Contact: Website

Re: Running EXE program from installer

Hi Carl,
1. Run a program EXE file from the installer, and yes ive tried custom actions ... but maybe im doing something wrong?
To launch an EXE file you can use a "Launch File or Open URL" predefined custom action. This predefined custom action can be created from Custom Action page.
2. Would like to install a service, tried the services page.... the service might not be windows standard, its installed like this: xxdbi.exe /install /nointeract from a wise script. But i cant get it to work with the parameters in Advanced Installer.
You can check if it is windows standard service using sc.exe.
If it is windows standard service you can add in Services page. In case it is not, you can launch the service from "Launch File or Open URL" predefined custom action and you can add your custom command line parameter in Command Line field from Custom Action Properties.

Regards,
Ciprian
__________________________________________________________________________________________________________________________________________________
Ciprian Comsa
Advanced Installer Team
http://www.advancedinstaller.com/
Ciprian Comsa - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: Running EXE program from installer

Hi,
Tx for the reply ... I figugured out how to execute the file, had to make files temporarily installed to get them running where i wanted. Using the UI custom actions and Exe with working Dir.

Will try the service now and see ..


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

Re: Running EXE program from installer

Hi again,
Ive now tried to install the service, it seems service name must be exactly like the exe name but without the .exe part for the service to start, but anyway i got it to work!
tx again

Regards
Carl
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Running EXE program from installer

Hi,
it seems service name must be exactly like the exe name but without the .exe part for the service to start,
This is not correct, the service name can be different from the one of the EXE file, but you must be careful as to use the same name in the
Control Operations group, the actions defined to start/stop the service.

If you change the service name under "Services to Install" tree you must also update its entries corespondent under the "Control Operations"
tree, otherwise you will actually create a service but try to start another one, because their names are different.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”