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!

DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Execute CMD command on button push

Hello! I need to be able to execute CMD command after pressing a button.

That button needs to execute this line ($path)myProduct.exe /exelang 1033.
Is there anyway to do this?

Is there anyway to get installer current path?

Plus i got this code on one of your topics to make sure the cmd isn't visible i need to incorporate that.

current Installer language != [ProductLanguage] which property should i use?

Thank You.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Execute CMD command on button push

Hello,
That button needs to execute this line ($path)myProduct.exe /exelang 1033.
Is there anyway to do this?
Yes, please take a look on the "How do I launch a CMD or BAT file?" and "Execute custom action on button push" articles.
Is there anyway to get installer current path?
Yes, you can use the "SOURCEDIR" and "SETUPEXEDIR" installer properties.
Plus i got this code on one of your topics to make sure the cmd isn't visible i need to incorporate that.

current Installer language != [ProductLanguage] which property should i use?
I don't fully understand this, please give us more details.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Re: Execute CMD command on button push

Thank You Very much again Daniel!

The last question i had was actually not correct my bad ProductLanguage actually returns the current installer language being used. Sorry About that.

I have another question on topic about the .exe File being executed.

This .exe will receive as parameter the current Selected Combo Value. And return the new reloaded installer with selected language.

I just need to be able to quit/kill/terminate the previous opened installer.

Is there any way to do that in AVD Installer? I'm thinking i could just kill it in cmd but if their is a way i can do this the moment the button is pressed or something.


Thank You again.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Execute CMD command on button push

Hello,

If you want to close the installation process, then you can add the following published event on your button:
  • Event: Close the current dialog
    Argument: Exit
When triggered, this event will display the "UserExit" dialog and then the installation will be interrupted.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Re: Execute CMD command on button push

Ok thank you very much Daniel!
Anyway after a press "Finish" Button on user exit Dialog to call the installer again with these paramenters: myInstaller.exe /exelang 1033 (for example)?



Thank You for your Time!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Execute CMD command on button push

Hello,
Anyway after a press "Finish" Button on user exit Dialog to call the installer again with these paramenters: myInstaller.exe /exelang 1033 (for example)?
I don't fully understand this. Can you please be more explicit (maybe exemplify)?

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

Return to “Building Installers”