Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
shorterxp

Make self-extracting archive run uncontained installer?

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

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...