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...
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)
Please log in to answer
Posted by:
WSPPackager
14 years ago
Posted by:
Repackman
14 years ago
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...
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
14 years ago
- 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.
- 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
14 years ago
- 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
14 years ago
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.
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
14 years ago
Posted by:
sumitsingh1984
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.