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!

bjvista
Posts: 3
Joined: Fri Jun 03, 2016 7:57 pm

Generate password in one step, use it in next

I am using an application that will generate a random password.
In the next step of the install, I want to install SQL Server Express 2014 and I want to insert this random password in to the command line so that the SQL install will use this password as the sapwd.

Can anyone provide some help on getting this done?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Generate password in one step, use it in next

Hello and welcome to our forums,

I'm afraid we don't have built-in support for your specific scenario. As a workaround, you can edit the application you created to launch the setup of the SQL Server and directly pass the password parameter by command line to the SQL Server setup.

For instance, you can add your custom application as a pre-install prerequisite (using the "File from disk" option) and add the SQL setup as an additional file to the prerequisite.

At install time the setup will launch your prerequisite app with the configured command line and all what your app has to do is to get the passed command line, append the random generated password and launch the SQL setup with the full command line. After the SQL setup installation process finished you application should exit.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bjvista
Posts: 3
Joined: Fri Jun 03, 2016 7:57 pm

Re: Generate password in one step, use it in next

So what you're saying is that Advanced Installer will run my .exe and then run the SQL setup. But the handing off of the password from my .exe to the SQL setup needs to be done via my .exe?
What does this option do under Setup Files\Main Setup File\"Save return value in this property:"? Does that allow me to save the output of my .exe to a GLOBAL VALUE?

Also, I'm using professional at the moment. I'm wondering if the enterprise version will allow me to do this via the SQL options under server.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Generate password in one step, use it in next

Hello Barry,
So what you're saying is that Advanced Installer will run my .exe and then run the SQL setup. But the handing off of the password from my .exe to the SQL setup needs to be done via my .exe?
Yes, all what Advanced Installer will do will be to run your EXE. Then your EXE should run the SQL setup which will be extracted at install time next to you EXE.
What does this option do under Setup Files\Main Setup File\"Save return value in this property:"? Does that allow me to save the output of my .exe to a GLOBAL VALUE?
Yes, this option will save the exit code of your prerequisite file into a public installer property.
Also, I'm using professional at the moment. I'm wondering if the enterprise version will allow me to do this via the SQL options under server.
No. This cannot be achieved using our "SQL Database" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”