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!

upgraders
Posts: 2
Joined: Mon Jun 29, 2015 11:31 pm

Wrapping an existing EXE is this posssible

I am trying the demo based on the features and reading some forum posts but I can't seem to find what I am looking for.

I have a setup.exe that I need to protect. I don't want someone to be able to run it alone. I want the installer to open the setup.exe and run through it (it would be nice to somehow populate the program settings but it's not necessary) as long as when it is done the installer closes the setup and copy's a file over replacing an existing file the setup.exe created and then deletes the extracted setup.exe

Is this possible and if so where do I look?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Wrapping an existing EXE is this posssible

Hello and welcome to Advanced Installer forums,
I want the installer to open the setup.exe
Since the related .EXE file is an installation package, you can add it as a prerequisite in the Prerequisites page. Please take a look on the Add Prerequisite article with related information for hints and guidance.
copy's a file over replacing an existing file the setup.exe created
Does the user have the possibility to change the installation path for the related .EXE ? If not, you can create a property based folder and add the related file there. Property based folders will be resolved at install time to the values from the respective property. That means you can set the property assigned to the property based folder with the path where the .EXE was installed.

Please take a look on the How do I install files in a custom folder? which may be useful to you.
deletes the extracted setup.exe
If the .EXE file is added as a Pre-Install prerequisite, just make sure that the Do not remove prerequisite files option is disabled from the Predefined Prerequisites page.

Let me know if that helped, otherwise give me more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
upgraders
Posts: 2
Joined: Mon Jun 29, 2015 11:31 pm

Re: Wrapping an existing EXE is this posssible

Thanks Dan,

The user Could change the path of the pre-req installer but they will be warned to install in a specific path else the total install and setup will not work. But I do NOT want the user to keep the pre-req exe on their computer I want it deleted at the end of the install. Is this possible without having to execute a custom BAT file?

Is it possible to have the installer enter and select the data/boxes from the pre-req installer? Like a set of macros that will enter data, tab, click etc.. to completion in the background?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Wrapping an existing EXE is this posssible

Hello,
I do NOT want the user to keep the pre-req exe on their computer I want it deleted at the end of the install.
For this, you can add the prerequisite as a Pre-Install one. As I said in my previous reply, if the Do not remove prerequisite files option is disabled from the Predefined Prerequisites page, the prerequisite will be deleted at the end of the installation process.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”