• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
keytotime

How to make a 7-Zip Switchless Installer

288 posts in this topic

I agree if u dont hv quick batch file converter, startX.exe is for you.

I think you've missed a point.

What does Quick Batch Compiler do ? It encapsulates your batch file within an exe. Try to compile a batch file with a pause statement inside. Launch it, and look into your %temp% directory. Surprise!! the "crypted" batch file is there, called bt????.bat.

If you intended to call msiexec.exe within your batch-exe file, then you've got a problem.

You can call install.exe like this: cd /d my_rep\somewhere & install.exe

You can also open the folder and double-click install.exe

But you cannot call this way: \my_rep\somewhere\install.exe. And remember that %cd% = %temp%, thanks to the "crypt" trick.

=> The install procedure described in this howto is GOOD.

Natan

http://www.windowsdream.com -- Auto-update your PC with freeware/opensource

http://ping.windowsdream.com -- Partimage Is Not Ghost

0

Share this post


Link to post
Share on other sites

;!@Install@!UTF-8!

RunProgram="Nero7.0.1.2.BASIC.exe -passive -norestart"

;!@InstallEnd@!

Why do I keep rebooting???

Will removing the -norestart from config.txt and calling the .exe from a batch

"%systemdrive%\install\applications\Nero7.0.1.2.BASIC.exe /norestart"

stop the reboot?

Edited by ebin25
0

Share this post


Link to post
Share on other sites

The config.txt should be:

;!@Install@!UTF-8!
RunProgram="msistub Nero.msi /qb-! /norestart"
;!@InstallEnd@!

0

Share this post


Link to post
Share on other sites

Keytotime remade most of my msi installs with your msistub & all working well.

Cheers

MC.

0

Share this post


Link to post
Share on other sites
The config.txt should be:

;!@Install@!UTF-8!
RunProgram="msistub Nero.msi /qb-! /norestart"
;!@InstallEnd@!

this is not working at all. installer starts and then rolls back. I suppose I could use my first one as my reboot cmd :blink:

Does anyone have more information about StartX.exe? I have looked around on google, but came up empty... or back to this site.

0

Share this post


Link to post
Share on other sites

Nero is slipping righ in there now. I started over from scratch. Thanks.

Edited by ebin25
0

Share this post


Link to post
Share on other sites

why we still need switches? then why this is called SWITCHLESS INSTALLER??????

0

Share this post


Link to post
Share on other sites

I guess after everything is said and done, all you'd have to do is double click (or call the .exe) and it'll install without switches.

0

Share this post


Link to post
Share on other sites
why we still need switches? then why this is called SWITCHLESS INSTALLER??????

The prog switches need to be prepackaged into the 7zip installer, very handy to automate your installation in ua etc.

0

Share this post


Link to post
Share on other sites
The prog switches need to be prepackaged into the 7zip installer, very handy to automate your installation in ua etc.

i mean to say....after making switchless installer of any application....will i need to use any switch for silent installation??? or still have to put command as below

"%systemdrive%\install\xxx.exe" ( there is no switches )

or still i have to use switches as below...

"%systemdrive%\install\xxx.exe /s /qn"

Edited by amit_talkin
0

Share this post


Link to post
Share on other sites
The prog switches need to be prepackaged into the 7zip installer, very handy to automate your installation in ua etc.

i mean to say....after making switchless installer of any application....will i need to use any switch for silent installation??? or should pust command as below

"%systemdrive%\install\xxx.exe" ( there is no switches )

or still i have to use switches as below...

"%systemdrive%\install\xxx.exe /s /qn"

Thats right once you build the 7zip or winrar installer you simply call the the exe it produces no switches as you showed here. :yes:

"%systemdrive%\install\xxx.exe" ( there is no switches )

Cheers

MC.

0

Share this post


Link to post
Share on other sites

cool!!!! thanks then....i was really confused with this one!!! now prob solved!!!! :P

0

Share this post


Link to post
Share on other sites

I can't make switchless instaler

I do:

1)ICreate new folder(my_program) and pasate totaluninstall.exe

2)I click right mouse button to totaluninstall and click 7-zip, add to archive. I select compression level ultra and hit OK.

3)ICopy 7zs.sfx to the folder(my_program)

4)I Open Notepad and I write:

;!@Install@!UTF-8!
RunProgram="totaluninstall.exe –switch"
;!@InstallEnd@!

I save as config.txt with UTF-8 encoding

5)I Open a command promp and write:

c:\my_program>copy /b 7zs.sfx + config.txt + totaluninstall.7z totaluninstall.exe

To install totaluninstall.exe i must cliking next :(

Help

What i do wrong?

0

Share this post


Link to post
Share on other sites

Is there any way to use switches other than "/qb-!"" and "/qn" when using an MSI Installer?

0

Share this post


Link to post
Share on other sites

I get this error The system cannot find the file specified.

In the notepad this is in it:

;!@Install@!UTF-8!

RunProgram="firefox.exe –switch"

;!@InstallEnd@!

The .7z is called firefox.7z and the .exe in it is called firefox.exe

So I seemed to do everything right, 7zS.sfx is in the same folder as all the other 2 files.

I get this error when I try to manually open the .7z to see if it will install.

Edited by Dwayne
0

Share this post


Link to post
Share on other sites

Hi, getting to do my TotalCommander installer, in fact this will be a Launcher-driven-startup of the program, with no actual installation, only copying in its folder (I thinkg the utility is called TotalCommander Loader - can be used as a USB started TC).

The only thing I would like to know is how to make the links on desktop and in Start Menu?

Is there difference between putting it under all users (to START) and only one of them, if yes how is it done?

For example, I will unpack all files to c:\totalcmd

How to add the shortcuts then?

Joe Yeti

0

Share this post


Link to post
Share on other sites
Hi, getting to do my TotalCommander installer, in fact this will be a Launcher-driven-startup of the program, with no actual installation, only copying in its folder (I thinkg the utility is called TotalCommander Loader - can be used as a USB started TC).

The only thing I would like to know is how to make the links on desktop and in Start Menu?

Is there difference between putting it under all users (to START) and only one of them, if yes how is it done?

For example, I will unpack all files to c:\totalcmd

How to add the shortcuts then?

Joe Yeti

sorry, already searched through WinRAR and found the options :blushing:

0

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

  • Recently Browsing   0 members

    No registered users viewing this page.