Jump to content

Make self-extracting archive run uncontained installer?


shorterxp

Recommended Posts

Hi all

This one's tricky,

 

I have self extracting archive and the program inside depends on a runtime.

Aiming for an unattended installation of both should the user choose to install the program, if not the runtime installer resides in another easy to find directory anyway. Duplicating the same runtime inside the archive wastes space.

 

Source is read only mandating intermediate copying (temp folder).

As working directory is now temporary folder, the source directory is disregarded.

Otherwise I would simply use command ..\ to locate runtime installer.

 

WinRAR SFX does provide "Run before extraction" but it disregards source directory in 'TempMode'.

As the source could be USB or DVD, a static variable can't be used in commands executed from temp folder.

 

Does SFX.exe have modifiable script? (that differs to whats offered in GUI)?

If so, could modify SFX.exe in someway to append a command, (using ..\ to locate installer).

 

Out of curiosity really, I could duplicate the files but that'd seem too ... unprofessional.

Edited by shorterxp
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...