Passing a custom command line through Bootstrapper - 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!

RJBock
Posts: 2
Joined: Fri Mar 16, 2012 10:02 am

Passing a custom command line through Bootstrapper

Hello all,

We have an application which has the option to receive custom setting data via about a dozen different command line switches on start up. For example to set a serial number we would include /SERNO=12345678. We'd like to be able to permit this to be passed through the installer setup.exe /SERNO=12345678 /LOCATION=Upstairs and so on. I was fairly certain that there's a way of doing this using the Bootstrapper but after an hour or so of prowling the help docs and forums I'm not finding it.

Hopefully I'm just under-caffeinated and not looking in the right spots :)

Can anyone point me in the proper direction?

Thanks...

RB
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Passing a custom command line through Bootstrapper

Hello and welcome to Advanced Installer forums,

Here's the bootstrapper CLI user guide article to help you with this. Basically you can set an installer property just like with regular msiexec command line.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RJBock
Posts: 2
Joined: Fri Mar 16, 2012 10:02 am

Re: Passing a custom command line through Bootstrapper

Hi Mihai, thanks for responding.

I read that article but I'm still a little fuzzy on how it would work. Being very new to AI probably doesn't help either. Since I'm pretty sure I'm either reading wrong or explaining wrong, and I can't change the way I'm reading it :) - I'll see if I can give you more information.

My program - let's call it MyProgram.exe has several command line startup switches to help facilitate large scale rollouts, so running it with the /SERNO=____ switch would allow each each PC on which it's installed to be configured with a specific serial number via a login script for example.

What I'm hoping I can do is create a AI install package - let's call it MyAIPackage.exe which I can run with the /SERNO=____ switch, which will in turn get passed through the bootstrapper and the MSI and start the program thus MyProgram.exe /SERNO=____.

Would that simply be MyAIPackage.exe //SERNO=____?

Thanks again for getting back to my so quickly...

RB
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Passing a custom command line through Bootstrapper

Hello RB,

If you need to run your application as part of the installation, you can try to do so with an installed custom action. This custom action should be scheduled after its resource is installed on the target machine.

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

Return to “Common Problems”