Is it possible to specify extract location in cmd line? - Advanced Installer Community
Dzmitry
Posts: 3
Joined: Thu Jan 15, 2015 1:39 pm

Is it possible to specify extract location in cmd line?

Hello.
I have executable setup with specified Extract location by default: [AppDataFolder][|Manufacturer]\[|ProductName] [|ProductVersion]\install.
Few users have not enough space in this folder and asked to give them an option to override extract folder to their own (otherwise they are not able to install).
I tried to override the extract location property in exe command line parameter like:
setup.exe /L*V log.txt AI_EXE_EXTRACTION_FOLDER=C:\install
and:
setup.exe /L*V log.txt AppDataFolder="C:\install"
without success, according to produced log.txt close to the end property is set to one specified in AIP:
Property(S): LocalAppDataFolder = C:\Documents and Settings\Administrator\Local Settings\Application Data\

Question: Is it possible to specify extract location in cmd line when running setup?

Thanks, Dzmitry
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Is it possible to specify extract location in cmd line?

Hi Dzmitry and welcome to Advanced Installer forums,

It is not possible to specify extract location in cmd line when running the setup.exe. By the way, can you please give us more details about your specific scenario? Why you would like to give another extract location when running the installation package?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dzmitry
Posts: 3
Joined: Thu Jan 15, 2015 1:39 pm

Re: Is it possible to specify extract location in cmd line?

Hi Dan and thanks for prompt reply.

We issued single EXE setup (resources inside) with LZMA compression. Setup .exe has size around 1GB.

One of our user complained he cannot install due to an error message "Insufficient space on drive C:", even if destination installation folder resides on D: drive.
This happened because setup.exe first tries to unpack files to “Extract Location” folder which normally resides on C: drive (i.e. C:\Documents and Settings\Administrator\Local Settings\Application Data\). If user does not have enough space on drive C:\ for unpacking, he cannot install on D:\ drive.
I thought the easiest workaround for this user would be to manually specify in command line extract location somewhere on D: drive to be able to install.

Since it’s not possible, we would advise user to free some place on C: drive before running setup.

If you have any better solution, please post it.

Thanks,
Dzmitry
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Is it possible to specify extract location in cmd line?

You're welcome Dzmitry,

Please note that you can extract manually the MSI contained by the EXE to a specified location by using the /extract <path> command line statement and then run the .MSI setup. For details please see the EXE setup file article. However, you will be prompted with a message box:

This package can only be run from a bootstrapper.

In order to avoid that prompt, you can set the SETUPEXEDIR property with any value in the InstallParameters page and there will be no launch condition prompt when running the MSI.

By the way, if you any prerequisite set as Pre-Install prerequisite they will not be installed, as the pre-install prerequisites are handled by our bootstrapper.

I think the best way to handle this will be to ask your user to free some space on the C:\ drive.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dzmitry
Posts: 3
Joined: Thu Jan 15, 2015 1:39 pm

Re: Is it possible to specify extract location in cmd line?

Dan, thank you for suggestions and prompt reply.

Regards, Dzmitry

Return to “Common Problems”