/build/static/layout/Breadcrumb_cap_w.png

Script Question...(Solved)

Folks,

Using Wise Script editor, is there any way to include an entire folder full of files as part of your package?

What action can I use to have this folder as part of my package and upon installation, dump it to a particular spot, Temp let's say, install the files from there and then delete itself...

0 Comments   [ + ] Show comments

Answers (7)

Posted by: WSPPackager 13 years ago
Senior Purple Belt
0
Hi

This is possible with custom action but How do you want to delete the installed files during uninstallation if they are not registered in the Windows Installer Database?

Regards
Posted by: Repackman 13 years ago
Purple Belt
0
Well, the way it is now is that the exe calls a bunch of files from the folder its in...The exe is not a stand alone...It needs those files in the folder...

What I want to achieve is bundling that whole folder, sending it to temp, from there launch the exe, and after the install has completed, deleting that folder from temp...
Posted by: anonymous_9363 13 years ago
Red Belt
0
- One, there is a dedicated 'Scripting' forum on AppDeploy.
- Two, WiseScript is truly dreadful. Its syntax is convoluted; there are precious few sample scripts out there; debugging comprises the use of popping up message boxes......forget it. If you want to go the script route, use VBScript. If that script needs to be an EXE, there are many VBS-to-EXE conversion utilities out there.
- Three, it's perfectly possible to do what you want with an MSI. The only slightly complicated thing would be the deletion after execution but that can be catered for by a Custom Action.
Posted by: cygan 13 years ago
Fifth Degree Brown Belt
0
- Three, it's perfectly possible to do what you want with an MSI. The only slightly complicated thing would be the deletion after execution but that can be catered for by a Custom Action.

save your self the stress and use option 3

your custom action would have to run after intallfinalize to delete stuff/files that you don't need
Posted by: sumitsingh1984 13 years ago
Second Degree Green Belt
0
Hi
We can use the Install File action of wise script to get this done.just need to add \*.* at the end of the folder.
Let say you need to add a folder name test(which contains many files) then use test\*.*
You can use Execute Program action to launch the exe from the TEMP folder and delete the files from TEMP using the delete file action.
Please let me know how you are progressing on this.
Posted by: Repackman 13 years ago
Purple Belt
0
Sumit Singh Ji, I know it might sound sort of gay, but if I could meet you right now I would kiss you...(On the cheeks of course...)

Your solution worked like a charm. Now I just need to make the response file work with the executable...

Got anything for that?
Posted by: sumitsingh1984 13 years ago
Second Degree Green Belt
0
Hi,
Just use the execute program action and in the command line you need to specify the response file arguments..This should do the trick...
Let me knw hw it goes from there :)
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