keytotime

How to make a 7-Zip Switchless Installer

288 posts in this topic

Is the name of the app under 8 characters and has no spaces? Here are two of mine that work. Thank's i fixed the typo.

;!@Install@!UTF-8!
RunProgram="StartX.exe /WAIT \"msiexec /i sav.msi /qb-! RUNLIVEUPDATE=0 REBOOT=REALLYSUPPRESS\""
;!@InstallEnd@!

;!@Install@!UTF-8!
RunProgram="StartX.exe /WAIT \"msiexec /i sav.msi /qb-! RUNLIVEUPDATE=0 REBOOT=REALLYSUPPRESS\""
;!@InstallEnd@!

0

Share this post


Link to post
Share on other sites
Is the name of the app under 8 characters and has no spaces?

Ok with that knowledge I now I have working 7-zip installers! Thank you for your patience.

0

Share this post


Link to post
Share on other sites

Thank's to you i was unaware of that before. :thumbup Updated first page.

@FoLmEr.

Try this

CMDOW @ /HID
@ECHO OFF

start /wait msiexec /i IP4_1.msi MM=14 /QB-! REBOOT=ReallySuppress

REGEDIT /S ip412.reg

EXIT

0

Share this post


Link to post
Share on other sites

DigitalAZ

it u are hving problems with keytotime guide

i have a video! yes a video on how to 7zip office 2003

check the link on my sig

keytotime

u are welcome to link or use my video as a ref to making 7zip.

:)

0

Share this post


Link to post
Share on other sites

i write this Autoit Code to auto creat .7z files or .exe(from sfx Files)

but ExE file after built not run the program in SFX comint it alwyes run setup.exe

i don't know wherr is error??!!!

;----------------------------------------------------------------------------

; AutoIt Version: 3.1.0

; Author: Ahmed Bayomy

; ----------------------------------------------------------------------------

if not FileExists("7za.exe") then FileCopy(@ProgramFilesDir & "\7-zip\7za.exe",@ScriptDir & "\7za.exe")

if not FileExists("7z.sfx") then FileCopy(@ProgramFilesDir & "\7-zip\7z.sfx",@ScriptDir & "\7z.sfx")

if not FileExists("7zs.sfx") then FileCopy(@ProgramFilesDir & "\7-zip\7zs.sfx",@ScriptDir & "\7zs.sfx")

if $CmdLine[0] =0 then

MsgBox(0,"Help","Parameters : " & @CRLF & " Folder name to creat 7z file " & @CRLF & " /SFX to creat .EXE " & @CRLF & " Filename to make .exe with autorun this file")

Exit

EndIf

dim $Command,$File

$7zFile='"' & $CmdLine[1] & '.7z"'

$Command="7za.exe a -t7z -mx9 " & $7zFile & ' "' & $CmdLine[1] & '\*" -r -y'

RunWait($Command,"",@SW_HIDE )

if $CmdLine[0] >1 then

if $CmdLine[2]="/SFX" Then

RunWait(@ComSpec & " /c " & "Copy /b " & @ScriptDir & "\7z.sfx + " & $7zFile & ' "' & $CmdLine[1] & '.exe"',"",@SW_HIDE)

FileDelete($7zFile)

Else

;~ -----------------------------

dim $7TXT

$7TXT=FileOpen(@ScriptDir & "\7z.txt",2)

FileWrite($7TXT,";!@Install@!UTF-8!" & @CRLF)

FileWrite($7TXT,"RunProgram=" & '"' & $CmdLine[2] & '"' & @CRLF)

FileWrite($7TXT,";!@InstallEnd@!" & @CRLF)

RunWait(@ComSpec & " /C " & 'Copy /b "' & @ScriptDir & '\7zs.sfx" + "' & @ScriptDir & '\7z.txt" + ' & $7zFile & ' "' & $CmdLine[1] & '.exe"');,"",@SW_HIDE)

EndIf

EndIf

au3SFX.zip

0

Share this post


Link to post
Share on other sites

Is anybody interested in using the custom 7zS.sfx I made which puts the % complete on the right side of the title bar? I'll post it if there's interest.

0

Share this post


Link to post
Share on other sites

OK, here you go. This is the same base SFX module I use for my switchless installers. It's got the % complete on the right side of the title (which I think looks better) and only has the extraction progress meter with no cancel button. I compiled it myself with MSVC++ 2003.

7zS.zip

0

Share this post


Link to post
Share on other sites

cool, only 1 prob :P u left the original icons eww :P lol

0

Share this post


Link to post
Share on other sites

well, it leaves it open for you to change to your liking :P

0

Share this post


Link to post
Share on other sites

I've gotten this going so well, but say I want to taskkill a program after installing... Where would I put the takkill explorer.exe or etc..?

0

Share this post


Link to post
Share on other sites

look @ the beginning of this thread.. theres a guide lol

0

Share this post


Link to post
Share on other sites

The only way i can see that I can put stuff like that in is through the config.txt with a .bat file, but completely defeats the purpose of a 7zip installer, cos the extraction would have to go to the same place everytime so i can use the .bat file, I just want it to extract to a temp dir and make a .bat install then copy over crack, then delete temp. That way only 1 file is needed. Can someone tell me what to do?

0

Share this post


Link to post
Share on other sites

I have followed the guide to the letter and failed with PowerDVD both trial and retail versions and a number of other apps too. In fact if I double click my PowerDVD installer from a Windows environment it works perfectly and silently, but when I call it from my RunOnceEx it prompts for the install directory - therefore not silent.

I have now given up trying to make one as I'm getting nowhere and "helpful" suggestions like read the guide again dont assist anyone. I have read it so many times I can quote it verbatim. The guide is good and well written.

Suggestions:

1. maybe a list of apps that have been successful

2. maybe ryanvm or someone could post this customised SFX module that will be more tolerant at the start of the thread

Or is it a case of certain apps are never going to be able to be made into switchless installers by this generic method?

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.