Page 1 of 1

Create a Folder during install but don't delete it upon uini

Posted: Fri Feb 13, 2015 12:39 pm
by Sheri_Steeves
Hello,

I have the following requirement:

I need to create a folder during install, to which I add a share name and assign permissions. When I uninstall (or updgrade) my product I do not want to remove this folder; my user's my have made some changes to the security and permissions on this folder that they want to keep.

Right now if the install process creates the folder (using the CreateFolder command before ApplyInstall), it is also removed during uninstall.

I tried using CreateDirectory but no folders are created; I suspect because I am calling it after ApplyInstall.

How can I keep InstallAware from removing that folder?


Thanks,

Sheri

Re: Create a Folder during install but don't delete it upon

Posted: Fri Feb 13, 2015 2:38 pm
by FrancescoT
Dear Sheri,

please have a look at the following link that describes how to execute a Windows Installer command immediately (not deferred to "apply install" execution). In this way the command will be not part of the MSI database and consequently, no action will be executed at un-install time.

http://www.installaware.com/forum/viewtopic.php?f=2&t=10212

Hope this helps you.

Regards

Re: Create a Folder during install but don't delete it upon

Posted: Sun Feb 15, 2015 2:13 am
by Adam
You could also Run Program CMD.exe /C MKDIR mynewdir

Re: Create a Folder during install but don't delete it upon

Posted: Tue Feb 17, 2015 12:12 pm
by Sheri_Steeves
Francesco, Adam

Thanks for the information; looks like one if those will be what I need.

Sheri