Create new folder

Got a problem you cannot solve? Try here.
matrix2k
Posts: 16
Joined: Tue Feb 07, 2006 5:27 am

Create new folder

Postby matrix2k » Wed Feb 15, 2006 9:21 am

How do I create a new empty folder during installation with InstallAware?

Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Postby Gizm0 » Wed Feb 15, 2006 9:25 am

By using the Create Folder command.
Specify the path you want, and the folder is created.
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
InstallAware Software Corporation

matrix2k
Posts: 16
Joined: Tue Feb 07, 2006 5:27 am

Postby matrix2k » Wed Feb 15, 2006 9:48 am

Thanks, I'm pretty new at this..
How do I remove a folder?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Wed Feb 15, 2006 11:22 am

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.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

matrix2k
Posts: 16
Joined: Tue Feb 07, 2006 5:27 am

Postby matrix2k » Thu Feb 16, 2006 3:54 am

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?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Thu Feb 16, 2006 6:07 am

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~
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

matrix2k
Posts: 16
Joined: Tue Feb 07, 2006 5:27 am

Postby matrix2k » Fri Feb 17, 2006 7:47 am

thanks that helps


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 135 guests