Changing extraction folder - 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!

caiocsabino
Posts: 1
Joined: Tue May 17, 2011 2:59 pm

Changing extraction folder

Hi,

I am working on an application which reads or creates a settings file during startup, this settings file is placed in the same folder where the installer will extract the files ([AppDataFolder][|Manufacturer]\[|ProductName]\). Apparently, after the user presses "Lauch Application" at the end of the installation, the folder is still in use by the installer so my application can't create the initial settings file because it doesn't have writing access to that folder. If I could change the location where the installation files are extracted I think it could fix the problem, preferably the application would be extracted to the same location where the installer file is. I tried to achieved this by changing the .aip by hand and using [SourceDir] for the ExtractionFolder property but it didn't work, it says there was a problem during extraction. How can I change the extraction folder or how can I be sure that by the end of the installation the extraction folder will permit writing?

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

Re: Changing extraction folder

Hello and welcome to the Advanced Installer Forums,
How can I change the extraction folder or how can I be sure that by the end of the installation the extraction folder will permit writing?
If you are creating an .EXE installer and have the "Include files in EXE" option enabled in the Media page, Bootstrapper tab of your current build and the MSI location is "Included in the EXE bootstrapper" then the extract location can be set from the same place in the Install Options group, Extract Location field.
If you want further access to the extracted files after the installation, you should also enable the "Do not delete extracted MSI and CAB files" option from the same group, as they get deleted once the installation is over.

To avoid any future difficulties, the recommended design to what you are trying to achieve, would be your application to create settings it needs in the install location and not in the extracted location of the installer. The options above are available so that your package can be repaired or modified if required by the user or by a patch.

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

Return to “Common Problems”