Problem repackaging self-extracting installer in VM - Advanced Installer Community
Bobtb
Posts: 4
Joined: Wed Aug 27, 2014 10:33 am

Problem repackaging self-extracting installer in VM

Hello,

Now that I have conquered the previous problem regarding Shared Folders, I've stumbled on yet another problem.

I am trying to repackage software in a VMware Workstation 10 guest OS (clean Windows 7 32bit installation)
The software is a self-extracting archive which runs an install.cmd file after extracting all files.

During the wizard I choose to "Prompt and wait after installing packages", all other select-able options are clear.

In the virtual machine, I see the repackager run the system state capture and afterwards I see the self-extracting archive running.
After it's finished extracting files, however, the install.cmd is not run (and, as a result, all the extracted files are deleted automatically) and I get the "Are you ready to proceed?" prompt in the repackager window. When I press Enter it's capturing the system state again.

Besides the fact that the self-extracting archive doesn't get to run its installer after extracting all files, I also noticed that the Capture Profile is set to Default, even though I created a profile specific for this application. What's up with that?

Please help me get through this so I can finally repackage this software and give Advanced Installer 2 thumbs up and make my manager purchase it for me!

Regards,
Bob
Attachments
ScreenShot219.jpg
ScreenShot219.jpg (22.29 KiB) Viewed 2853 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Problem repackaging self-extracting installer in VM

Hi Bob,

I am not sure why the self extracting EXE does not launch the BAT, might be something from it. As a workaround I would recommend to manually extract the
EXE contents, with 7-ZIP for example, and pass the BAT as the installer for the Repackager to launch in the VM.

The Repackager should share the parent folder of the BAT, so all the files requires for the installation (which I assume get extracted next to the BAT) will
be available.

If you have problems with passing the BAT directly to the repackager you can place a dummy EXE (for example an empty installer made with us) in the same folder
you have the BAT and extraxted files. The repackager will then launch that EXE, after the EXE is launched you leave it running and manually launch the BAT.

After the installation is complete you can press ENTER in the command prompt window of the repackager.

Regarding the profile, that is a small bug in version 11.4 (and 11.4.1), we already fixed it and will be available in our next version in September.
The thing is that with version 11.4 we worked on creating a manager of repositories, to make it easier for teams to work with AI. This involved copying the repackager profiles
from the old location in the new repository location. The bug is that when running in the VM the repackager is still loading the profiles from the old location, so the new profiles
you created in the repository are not loaded, this is why it is using the wrong profile for you.

The workaround is very simple, all you have to do is to copy the repackager profiles from the repository folder in the old location, until we release the next version.

Repository Folder: C:\ProgramData\Caphyon\Advanced Installer\Repository

Old Profiles Folder: C:\Users\<username>\AppData\Roaming\Caphyon\Advanced Installer\repackager\Profiles

Just copy all the files from the Repository in the old profiles folder, then re-launch the repackager to load them.

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

Return to “Common Problems”