PDA

View Full Version : Loop to repeat install to different folders - "decompression error has been detected"



RichBPL
06-16-2021, 12:54 PM
I want to allow a SB setup script to repeat part of the script, so user may install/update into various instances of "hosted" program.
I have a LOOP that surrounds the following script sections:
- Wizard Loop
- Progress Dialog
- Create Installatioin App & Log
- Create Folders
- Install Files
- Create shortcuts
- Create an XML file
- Modify system / Add Firewall rules
- Register all pending file operations
- Display Message box - prompt to repeat or exit

The second time through I get the following error when decompressing the main .exe file (that receives a new name via the [Advanced] / "Desitination Filename" option on its "Install File(s)" script command:

"A decompression error has been detected"

p.s. SB Version 10.0.6531

linder
06-17-2021, 02:23 AM
Rich,

please see the attached screenshot.

Friedrich

RichBPL
06-17-2021, 04:03 PM
Okay. How about if I split my script into two exe's: 1) a main one that collects the user's options in a loop and passes the options (via command line or a text file) to, 2) a second program that performs the Install?

Would two SB compiled installer exe's with different names, running at the same time, collide with each other?

linder
06-18-2021, 03:32 AM
Rich,

or what about using the "Copy File" function to copy from the installed file to the 2nd location?

Friedrich

RichBPL
06-18-2021, 09:20 AM
Oh, right, "Copy File" allows use of wild-cards, which I hadn't realized, so yes that could work for me along with "Rename File".

I would "Install" to a master folder which is used only for storing the uncompressed files and then have a loop in the script after that that prompts to Copy those files to a new customer folder or update an existing folder.
For the few files that are named differently for each customer, I'd just use delete and rename on them.

Any thoughts on the other question I posted about tracking multiple installed instances on a hosting computer?
-Thanks-