FileForums

FileForums (https://fileforums.com/index.php)
-   PC Games (https://fileforums.com/forumdisplay.php?f=6)
-   -   Unarc innosetup (https://fileforums.com/showthread.php?t=93879)

gabrimor 08-12-2012 07:08

Unarc innosetup
 
Hi, thanks for reading.

How can I make an Inno script linked to an .ARC file.
Let's say the file is "ABC.arc"

What's the code to unarc it?

Stacked Deck 08-12-2012 07:09

What Inno Setup Script are you using?

gabrimor 08-12-2012 08:46

1 Attachment(s)
Thanks for fast answer, Stacked Deck.

First of all, I used a small game for tests, easy to work.

I'm searching around and I think I found an easiest way. For a noob, but it's working.
Only one problem: The final installer create an uninstaller but it doesn't work, the only uninstalled file is the uninstaller itself..


--> File to decompress abc.sfx (looks easiest and better then abc.arc)


How I'm building my Installer:

Step 1:
I build a simple script based on the directory of the game files. I save the script and close it without compile.

Step 2:
I create a .sfx archive with the game files.

Step 3:
Open the saved script of Step 1 and then overwrite 2 sections, [Files] and [Run] with this:

[Files]
Source: "D:\abc.exe"; DestDir: {tmp}; Flags: deleteafterinstall

[Run]
Filename: {tmp}\abc.exe; Parameters: "-x -d""{app}"" -y -s2"


Final script attached.

gabrimor 08-12-2012 09:01

And I found a workaround, another...

Some people say it's not recommended:

[UninstallDelete]
Type: filesandordirs; name:{app}

Stacked Deck 08-12-2012 10:00

Quote:

Originally Posted by gabrimor (Post 411712)
Thanks for fast answer, Stacked Deck.

First of all, I used a small game for tests, easy to work.

I'm searching around and I think I found an easiest way. For a noob, but it's working.
Only one problem: The final installer create an uninstaller but it doesn't work, the only uninstalled file is the uninstaller itself..


--> File to decompress abc.sfx (looks easiest and better then abc.arc)


How I'm building my Installer:

Step 1:
I build a simple script based on the directory of the game files. I save the script and close it without compile.

Step 2:
I create a .sfx archive with the game files.

Step 3:
Open the saved script of Step 1 and then overwrite 2 sections, [Files] and [Run] with this:

[Files]
Source: "D:\abc.exe"; DestDir: {tmp}; Flags: deleteafterinstall

[Run]
Filename: {tmp}\abc.exe; Parameters: "-x -d""{app}"" -y -s2"


Final script attached.

That's not necessary anymore.

Stacked Deck 08-12-2012 10:06

1 Attachment(s)
Quote:

Originally Posted by gabrimor (Post 411713)
And I found a workaround, another...

Some people say it's not recommended:

[UninstallDelete]
Type: filesandordirs; name:{app}

It is highly recommended to include that line when dealing with archived installers, to save space and to ensure that application is completely uninstalled.

The attachment below removes you problems forever.

Open script, goto line 333, set up archive name, directory and destination.

to disable, put //
done. Problem solved

gabrimor 08-12-2012 12:01

WOW!!!!!!!!!!!!!!!!!!!

You're the man, you're really good, it's working like a charm.

Thanks for all your help and patience,
Gabriel

Stacked Deck 08-12-2012 12:23

My Pleasure, Here are some installers.
http://www.fileforums.com/showpost.p...99&postcount=5


All times are GMT -7. The time now is 21:14.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com