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!

RahulS
Posts: 3
Joined: Tue Sep 03, 2013 7:31 am

Create folder during silent installtion

Hi
I am automating an enterprise installer which uses a msi package built with automatic installer. When the installer starts, it creates a folder in C:\Temp and copies all the .sql files in it. When the user click on Install button, installer executes the scripts residing in C:\Temp folder along with few other things. I have gone through the properties of the installer but I have not found anything which would tell how installer is creating those folders.
When I run the utility in passive or in quite mode, the installer complains that there is no folder like C:\Temp. However, if I run the utility with /qf mode everything works fine.

I noticed that one of the property in the installer was TemporaryScriptFolder = C:\Temp\. However, when I run the silent installer from the command line, it does not create and copies respective files in C:\Temp.
I wanted to request the forum to share the property with which my silent installer can create folder in C:\Temp and also add copy respective files in the folder.

Thanks in advance.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Create folder during silent installtion

Hi and welcome to Advanced Installer forums.

The temporary files are created after the "CostFinalize" standard action was executed. So, in order for your temporary files to be found on the machine when a custom action tries to use them, you can place the custom action under the "Paths Resolution" action group.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RahulS
Posts: 3
Joined: Tue Sep 03, 2013 7:31 am

Re: Create folder during silent installtion

Thanks for the reply. My concern here is the installer automation and not the installer.

Since I am trying to automate the installer, I am passing all the properties and their values as command line parameter. For example, I use the following on command prompt:
setup.exe /passive /l* 12_4_5.out SERVER_PROP=172.18.97.115 BCOREIP=172.18.97.116 DBDRIVER_PROP="Sql Server" USERNAME_PROP=user PASSWORD_PROP=password

Now when I execute the following command, it throws an error that there in folder like C:\Temp. I cannot change the installer since the installer is a 3rd party enterprise software. I created a temp folder but still it does not work.
I wanted to know what else I have to pass over command line so that installer creates temp folder and copies all the respective files that it does when CostFinalize was executed.
When I run the installer in /qf mode, it works fine. If I use /passive or /quite then files then folder is not created.

Thanks in advance.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Create folder during silent installtion

Hi,

I'm not sure why you encounter this behavior. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”