sandeep.gvn
Posts: 26
Joined: Wed Jan 15, 2014 11:55 am

How to add a Temporary Folder from Command Line

Thu Apr 15, 2021 5:07 pm

Hi,

Could you please let me know "How to add a Temporary Folder through command line for AIP Projects"?

Regards,

G.V.N.Sandeep

Catalin
Posts: 6541
Joined: Wed Jun 13, 2018 7:49 am

Re: How to add a Temporary Folder from Command Line

Thu Apr 15, 2021 5:41 pm

Hello Sandeep,

I am afraid your request is not quite clear to me.

If you meant to ask how to add a temporary file in your project through command line, please refer to our "Add Temporary File Command Option" article.

If that's not what you meant, please give me some more details so I can further assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

sandeep.gvn
Posts: 26
Joined: Wed Jan 15, 2014 11:55 am

Re: How to add a Temporary Folder from Command Line

Fri Apr 16, 2021 2:00 am

Hi Catalyn,

Here is my requirement.. There is a function in Advanced Installer called "Add Temporary Folder" as per the attached screen shot. I would like to know "How would I invoke the same function through command line"?

Regard,

Sandeep.
Attachments
Temp Folder.png
Temp Folder.png (622.23KiB)Viewed 6460 times

Catalin
Posts: 6541
Joined: Wed Jun 13, 2018 7:49 am

Re: How to add a Temporary Folder from Command Line

Fri Apr 16, 2021 5:27 pm

Hello Sandeep,

Thank you for your followup on this.

Your scenario is now clear to me.

Unfortunately, we do not have such command.

I have added this on our TODO list of improvements and hopefully this will be added in a future version of Advanced Installer. Thank you for bringing this to our attention!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

sandeep.gvn
Posts: 26
Joined: Wed Jan 15, 2014 11:55 am

Re: How to add a Temporary Folder from Command Line

Sun Apr 18, 2021 10:05 am

Hi,

Catalin, Thanks for the information and adding this as an improvement to your ToDo List.

I was able to get this to work somehow by making use of the command below

/edit "MyProject.aip" /AddFolder "TempFolder" "TEMP_FOLDER_01"

I am able to see the folder getting added to the the Temporary Folder which is located under windows section of Aip Project. But somehow at the time of installation, system is not able to copy this particular folder into Temp at the time of installation.

Do you have any work around for this, where the folder which gets added to Temporary Folder using the above commands gets copied into Temp Folder at the time of installation?

Regards,

Sandeep.

Catalin
Posts: 6541
Joined: Wed Jun 13, 2018 7:49 am

Re: How to add a Temporary Folder from Command Line

Mon Apr 26, 2021 9:26 am

Hello Sandeep,

First of all, please accept my apologies for the delayed reply (I was off last week due to not feeling well).

Please note that the "workaround" you have found does not really achieve the same as using the "Add temporary folder" option.

When using the "Add temporary folder" option, all the files from the selected folder are added as temporary files, whereas with your "workaround" they are added as normal files.
Do you have any work around for this, where the folder which gets added to Temporary Folder using the above commands gets copied into Temp Folder at the time of installation?
I have tested this and everything worked as expected on my end - the folder was added under the %temp% folder at install time:
temp.png
temp.png (121.82KiB)Viewed 6294 times

Please make sure that you have enough rights to write to the %temp% folder.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Catalin
Posts: 6541
Joined: Wed Jun 13, 2018 7:49 am

Re: How to add a Temporary Folder from Command Line

Mon Sep 19, 2022 5:31 pm

Hello Sandeep,

This improvement has been added in Advanced Installer 19.9, released on September 14th, 2022.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”