Page 1 of 1
Create new folder
Posted: Wed Feb 15, 2006 9:21 am
by matrix2k
How do I create a new empty folder during installation with InstallAware?
Posted: Wed Feb 15, 2006 9:25 am
by Gizm0
By using the Create Folder command.
Specify the path you want, and the folder is created.
Posted: Wed Feb 15, 2006 9:48 am
by matrix2k
Thanks, I'm pretty new at this..
How do I remove a folder?
Posted: Wed Feb 15, 2006 11:22 am
by MichaelNesmith
If you want it gone during uninstall, that's automatic.
If you will be uninstalling a folder you didn't create during the install, you can use Delete Files Recursive, or the RemoveDirectoryA function in kernel32.dll through the Call DLL Function plug-in.
Posted: Thu Feb 16, 2006 3:54 am
by matrix2k
Delete Files Recursive doesn't seem to remove the complete folder only the files inside. How do I use the Call DLL function plugin to call kernel32.dll function? Is there a sample script or a screenshot?
Posted: Thu Feb 16, 2006 6:07 am
by MichaelNesmith
Here is a snippet that removes $TARGETDIR$:
Code: Select all
~InstallAware Clipboard Data~
~Call DLL Function~
~{95B5542A-DF3E-4AFF-B33E-8FCAC80C73FB}~
~RemoveDirectoryA,kernel32.dll,bool,,"pointer to string",$TARGETDIR$,$~
~mIDEFunc.dll\\mEXEFunc.dll~
Posted: Fri Feb 17, 2006 7:47 am
by matrix2k
thanks that helps