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

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
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
Answered 08/30/2010 by: WSPPackager
Senior Purple Belt

Please log in to comment
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...
Answered 08/30/2010 by: Repackman
Purple Belt

Please log in to comment
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.
Answered 08/31/2010 by: VBScab
Red Belt

Please log in to comment
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
Answered 08/31/2010 by: cygan
Fifth Degree Brown Belt

Please log in to comment
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.
Answered 08/31/2010 by: sumitsingh1984
Second Degree Green Belt

Please log in to comment
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?
Answered 10/01/2010 by: Repackman
Purple Belt

Please log in to comment
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 :)
Answered 10/07/2010 by: sumitsingh1984
Second Degree Green Belt

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