Jump to content
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. ×

Universal Silent Switch Finder 0.1


Recommended Posts

  • 6 months later...

  • 2 months later...

:hello:

Hi, I have changed the beginning of ussf.au3 to check, if it got a file as parameter (rightclick and open with ussf).

And also to check where peid.exe is sitting (3 locations: scriptdir (dir of ussf), windowsdir and systemdir)

Only 1 file is checked, so no multiselect please. If more files are selected prior to rightclick the one under the mouse is checked.


; <AUT2EXE VERSION: 3.1.0.1>

; ----------------------------------------------------------------------------
; <AUT2EXE INCLUDE-START: D:\Dokumente\AutoIT Test\USSF.au3>
; ----------------------------------------------------------------------------

AutoItSetOption ( "TrayIconHide", 1)

If FileExists(@ScriptDir & "\peid.exe") Then
$peiddir = @ScriptDir
ElseIf FileExists(@WindowsDir & "\peid.exe") Then
$peiddir = @WindowsDir
ElseIf FileExists(@SystemDir & "\peid.exe") Then
$peiddir = @SystemDir
Else
MsgBox(0,"Error", "peid.exe not found!")
Exit
EndIf

If $CMDLINE[0] <> 0 Then
$FileName = $CMDLINE[1]
;MsgBox (0, "Parameter", "Es wurde: " & $pars & " eingegeben.")
Else
$FileName = FileOpenDialog("Select Installer to analyse", @WorkingDir, "(*.exe)", 1)
EndIf


;msgbox(0,"Info","" & $FileName)
If @error <> 1 Then

Run ($peiddir & "\peid.exe -hard " & '"' & $FileName & '"' ,"", @SW_HIDE)
WinWait ("PEiD v0.9")
$IDString= ControlGetText("PEiD v0.9", "", "Edit2")
SplashTextOn("USSF 0.11", "Scanning...",300,200)

While ($IDString ="Scanning...") or ($IDString ="")
Sleep (100)
$IDString= ControlGetText("PEiD v0.9", "", "Edit2")
WEnd

SplashOff()

WinClose ("PEiD v0.9")
$foundsomething = "n"
;msgbox(0,"Universal Silent Switch Finder 0.1",$IDString)
If StringInStr ($IDString, "Inno Setup") Then
msgbox(0,"Results","This is an Inno Setup installer." & @CR & @CR & _
"Silent switches are:" & @CR & _
"/SILENT or /VERYSILENT" & @CR & @CR & _
"Additional switches are: " & @CR & _
"/SP- Disables the ""This will install... Do you wish to continue?"" prompt at the beginning of Setup." & @CR & _
"/NOCANCEL Prevents the user from cancelling during the installation process." & @CR & _
"/NORESTART Instructs Setup not to reboot even if it's necessary." & @CR & _
"/SAVEINF=""filename"" Instructs Setup to save installation settings to the specified file." & @CR & _
"/LOADINF=""filename"" Instructs Setup to load the settings from the specified file after having checked the command

line." & @CR & _
"/DIR=""x:\dirname"" Overrides the default directory name displayed on the Select Destination Location wizard page." & @CR

& _
"/COMPONENTS=""comma separated list of component names"" Overrides the default components settings.")
$foundsomething = "y"
EndIf

If StringInStr ($IDString, "Wise") Then
msgbox(0,"Results","This is a Wise installer." & @CR & @CR & _
"Silent switch is:" & @CR & _
"/s" & @CR & _
"Alternative switches are: " & @CR & _
"/x ""x:\dirname"" Extract (don't install) files to path")
$foundsomething = "y"
EndIf

If StringInStr ($IDString, "Nullsoft") Then
msgbox(0,"Results","This is a Nullsoft NSIS installer." & @CR & @CR & _
"Silent switch is:" & @CR & _
"/S (all switches must be upper case)" & @CR & @CR & _
"Additional switches are: " & @CR & _
"/D=""x:\dirname"" Install program to path" & @CR & _
"/NCRC Skip CRC check")
$foundsomething = "y"
EndIf

If StringInStr ($IDString, "Installshield AFW") Then
msgbox(0,"Results","This is an Installshield installer." & @CR & @CR & _
"First unpack the monolithic setup file with WinRar." & @CR & _
"You either have a .CAB or .MSI based installer." & @CR & _
"For CAB based:" & @CR & _
"Record an installation with this command:" & @CR & _
"Setup.exe /r /f1""c:\setup.iss""" & @CR & _
"Now you can perform a silent installation with the iss file:" & @CR & _
"Setup.exe /s /f1""c:\setup.iss""" & @CR & _
" "& @CR & _
"For MSI based:" & @CR & _
"Msiexec /i setup.msi /qb")
$foundsomething = "y"
EndIf

If StringInStr ($IDString, "Installshield 2003") Then
msgbox(0,"Results","This is an Installshield 2003 installer." & @CR & @CR & _
"Try to retrieve the MSI file from the temp folder during installation." & @CR & _
"Then install with:" & @CR & _
"Msiexec /i setup.msi /qb")
$foundsomething = "y"
EndIf

If StringInStr ($IDString, "RAR SFX") Then
msgbox(0,"Results","This is a selfextracting RAR archive." & @CR & @CR & _
"The RAR comment contains the setup script.")
$foundsomething = "y"
EndIf

If StringInStr ($IDString, "ZIP SFX") Then
msgbox(0,"Results","This is a selfextracting ZIP archive." & @CR & @CR & _
"Extract the files and investigate further.")
$foundsomething = "y"
EndIf

If StringInStr ($IDString, "WinZip") Then
msgbox(0,"Results","This is a selfextracting WinZip archive." & @CR & @CR & _
"Extract the files and investigate further.")
$foundsomething = "y"
EndIf

If $foundsomething <> "y" Then
msgbox(0,"Results","Sorry, unknown installer.")
EndIf
;msgbox(0,"Universal Silent Switch Finder 0.11",$IDString)
EndIf

; ----------------------------------------------------------------------------
; <AUT2EXE INCLUDE-END: D:\Dokumente\AutoIT Test\USSF.au3>
; ----------------------------------------------------------------------------

Don't know if this code is the most recent. But I hope you get the point.

If anyone has newer versions please update in order to have those rightclick-feature often mentioned in this thread.

To use it, import this:


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\exefile\shell\Identify with USSF\command]
@="\"C:\\Windows\\ussf.exe\" \"%1\""

Edited by stevecharon
Link to post
Share on other sites
  • 1 month later...
  • 4 weeks later...
I am getting "sorry, Unknown Installer" error when I run USSF.exe and browse to the setup.exe

please help... i want to find silent unstall commandline for one of my setups.

Just name it.

Link to post
Share on other sites
I am getting "sorry, Unknown Installer" error when I run USSF.exe and browse to the setup.exe

please help... i want to find silent unstall commandline for one of my setups.

Just name it.

Sorry Radix.. i dint understand..

Link to post
Share on other sites

Business object 6.5.4 Hotfix 81 is the application name

actually its not working for any setup.exe.

I tried with other and got the same error...

though i have kept peid.exe in the same folder as USSF.exe

when i run peid.exe its doesnt give any option to find the commandline...

actually i dont kno how to use this...

can also tell me the procedure please..

Edited by akhlaque
Link to post
Share on other sites
can also tell me the procedure please..

I don't know. Try to unpack with Universal Extractor and see what message appear.

Or provide a link for download (if is available).

Link to post
Share on other sites
I need to unpack what?

setup.exe???

If you have multiple files (not just an installer) forget about Universal Extractor.

And if that program is not available for download somewhere I can't help you.

Link to post
Share on other sites
Business object 6.5.4 Hotfix 81 is the application name

If you search the website of Business object, then you may find they have good support to answer you question. I downloaded a PDF here that shows you a picture of the installation and I can see InstallShield branded on the window. It also tells you where to get information about silent install by searching for KB article c2014706 found here which lists InstallShield switches to use. The website seems to require IE to view so use IETab in Firefox or IE to view.

actually its not working for any setup.exe.

I tried with other and got the same error...

though i have kept peid.exe in the same folder as USSF.exe

when i run peid.exe its doesnt give any option to find the commandline...

actually i dont kno how to use this...

can also tell me the procedure please..

If PEiD does not identify it then you will need to search for switches yourself. Look for branding etc when starting a manual installation to notice installer type used. Only several installer types support switches thus automation or repacking... etc may need to occur for unattended installation for those that do not support switches.

:)

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.

×
×
  • Create New...