Hi,

can anyone tell me how to remove an empty folder or a folder with randomly generated files in it using wise functionality.
how to use REMOVE FOLDERS ACTION effectively.

thanks in advance
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Pre - create the folder in the files and folder section.
right click on the right hand window in the destination computer (bottom window) and select remove and check all files and uninstall.
Answered 03/12/2007 by: bheers
Second Degree Blue Belt

Please log in to comment
0
Hi bheers,

do you meant to use Remove File option?
we tried that and files are removed but empty Folders are not getting removed.
we want to remove the empty Folders.

Another scenario is ,when an MSI which has got a service associated with it (which has been controlled by using a service control to stop and remove on uninstall)
the problem is once service is removed it requires a system restart which happens but the removal of remainning folder/files are not happening.
kindly advice us

thanks in advance
Answered 03/12/2007 by: package_kolla
Senior Yellow Belt

Please log in to comment
0
hi there

can you please make the question clear

do you have an empty folder or a folder with remnant files in it when you uninstall the msi package

if you have empty folders run a validation check with orca and you should get ice errors 64.

make an entry in the remove file table.

if you have remnant folders with files iin it then I can write you a vb script with custom action ( Call VB script from Installation) sequenced after Install Validate with the condition REMOVE =ALL to remove the folders with the files in it on the uninstall

is this what you want to achieve
Answered 03/13/2007 by: cygan
Fifth Degree Brown Belt

Please log in to comment
0
Hi cygan,

thanks for the input but the folder is not empty while packaging.while uninstall this will take away all the files inside but empty folder remains back.
it has been observed this problem generally occurs when this msi has a service assosicated with it , which will prompt for a restart and folders will be remaining after that.

our customers are not happy with VB script which we used before.They want us to check with the WISE functionality in more detail.

In WISE we tried with REMOVE FILE table.but this will remove only the files but empty folders are remainning.we tried by giving NULL as well as blank values in files name column,but still it is not working.

thanks in advance
Answered 03/13/2007 by: package_kolla
Senior Yellow Belt

Please log in to comment
0
You can write a Wise Script to remove the folders and files in it, if the default Wise Installer Functionality is not working.
and scedule the Action during Removal.
in wise script editor there is a Remove Folder\Files option. and use *.* and Check the 2 boxes beneath the folder name.

if Remove~="ALL"
Execute program from Installation
End

use this in Execute deffered, before or after install finalize
Answered 03/15/2007 by: bheers
Second Degree Blue Belt

Please log in to comment
0
Hi bheers,

can you provide some links so that we can get more information about the same.

thanks in advance
Answered 03/16/2007 by: package_kolla
Senior Yellow Belt

Please log in to comment
0
Sample Scripts

Here is the link to some sample wise scripts, i did not find a sample wise script with exactly what you want.
Answered 03/16/2007 by: bheers
Second Degree Blue Belt

Please log in to comment
0
hi bheers has put you on the right track

you can try creating .exe files using wisescript which is easy to use

look at wisescript admin tasks examples
Answered 03/16/2007 by: cygan
Fifth Degree Brown Belt

Please log in to comment
Answer this question or Comment on this question for clarity