Jump to content

7-zip self extracting setup not installing to path


Drekko

Recommended Posts

Hey guys

 

Been reading this thread and I think I am doing it all correctly with double \\ and after executing my extracter it keeps saying it cannot find the install path so its not extracting to the location I am specifying in the config.txt file:

 

;!@Install@!UTF-8!
Title="PaperCut & Printer Installer"
InstallPath="C:\\Program Files (x86)\\PaperCut Installer"
BeginPrompt="Do you want to install the Papercut & Printer Installer?"
ExecuteFile="C:\\Program Files (x86)\\PaperCut Installer\\PrinterVBS.vbs"
;!@InstallEnd@!

 

Anyone able to help please?

 

Link to comment
Share on other sites

  • 1 month later...

Note that:
InstallPath =     %ProgramFiles% <== equivalent to "C:\Program Files" in 32 bit and "C:\Program Files (x86)" in 64 bit
InstallPath = x86:%ProgramFiles% <== equivalent to "C:\Program Files" in 32 bit
InstallPath = x64:%ProgramW6432% <== equivalent to "C:\Program Files" in 64 bit

Also:
x86: will only execute on 32bit
x64: will only execute on 64bit
%%T variable is equal to the InstallPath

So you could try:

1 - If you choose to use "C:\Program Files" in 32 bit and "C:\Program Files (x86)" in 64 bit:

;!@Install@!UTF-8!
GUIMode="2"
Title="PaperCut & Printer Installer"
InstallPath="%ProgramFiles%\\PaperCut Installer"
BeginPrompt="Do you want to install the Papercut & Printer Installer?"
RunProgram="cscript %%T\\PrinterVBS.vbs"
;!@InstallEnd@!

2 - Or, If you choose to use "C:\Program Files" in 32 bit and also "C:\Program Files" in 64 bit:

;!@Install@!UTF-8!
GUIMode="2"
Title="PaperCut & Printer Installer"
InstallPath="x64:%ProgramW6432%\\PaperCut Installer"
InstallPath="x86:%ProgramFiles%\\PaperCut Installer"
BeginPrompt="Do you want to install the Papercut & Printer Installer?"
RunProgram="cscript %%T\\PrinterVBS.vbs"
;!@InstallEnd@!

Try and check if it works

Edited by SunLion
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...