/build/static/layout/Breadcrumb_cap_w.png

Removing Folders Using Wise Package Studio

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

Answers (8)

Posted by: bheers 17 years ago
Second Degree Blue Belt
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.
Posted by: package_kolla 17 years ago
Senior Yellow Belt
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
Posted by: cygan 17 years ago
Fifth Degree Brown Belt
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
Posted by: package_kolla 17 years ago
Senior Yellow Belt
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
Posted by: bheers 17 years ago
Second Degree Blue Belt
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
Posted by: package_kolla 17 years ago
Senior Yellow Belt
0
Hi bheers,

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

thanks in advance
Posted by: bheers 17 years ago
Second Degree Blue Belt
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.
Posted by: cygan 17 years ago
Fifth Degree Brown Belt
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ