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  
Drekko

7-zip self extracting setup not installing to path

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?

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...