Jump to content

Recommended Posts

Posted

Hello everybody,

I want to put DAMNED NFO Viewer v2.10 on my unattend CD, but I've got some problem to do it. NO SILENT INSTALL. I've read in that forum that there was an .msi file we can download to do the silent install, but I can't access to it. How an I make a silent install for that soft.

Thanks in advance for any help...


Posted

Add this to command.com

ECHO.

ECHO Installing **** NFO Viewer

ECHO Please wait...

start /wait %systemdrive%\install\Applications\DamnNFOViewer\****.msi /qn

*****************

$1

install

Applications

DamnNFOViewer

Posted

Hi XtremeMaC,

Thanks for your help! I'll download your file and test it. I've tried to make an *.msi file with WinInstall LE but it doesn't work.

Thanks ;-)

  • 1 year later...
Posted (edited)

The link to the "new and better msi" pack is dead :( I guess i'll make a NSIS myself. I made one in 5 minutes that installs a set of winamp skins in the right location, and that works absolutely silently... So... Well...

Actually, it took lesser time to achieve than expected...

Done

Run with DamnNFOViewer.exe /S to run silently.

!define APPNAME "**** NFO Viewer"
!define APPNAMEANDVERSION "**** NFO Viewer 2.10"

; Main Install settings
Name "${APPNAMEANDVERSION}"
InstallDir "$PROGRAMFILES\**** NFO Viewer"
InstallDirRegKey HKLM "Software\****\${APPNAME}" ""
OutFile "DamnNFOViewer.exe"

LicenseData "C:\Program Files\**** NFO Viewer\license.txt"
LicenseText "If you accept the terms of the agreement, click I Agree to continue. You must accept the agreement to install ${APPNAMEANDVERSION}."

ComponentText "Choose which features of ${APPNAMEANDVERSION} you want to install."

DirText "Choose the folder in which to install ${APPNAMEANDVERSION}."

Section "**** NFO Viewer"

; Set Section properties
SetOverwrite on

; Set Section Files and Shortcuts
SetOutPath "$INSTDIR\"
File "C:\Program Files\**** NFO Viewer\**** NFO Viewer.exe"
File "C:\Program Files\**** NFO Viewer\ReadMe.txt"
File "C:\Program Files\**** NFO Viewer\history.txt"
File "C:\Program Files\**** NFO Viewer\license.txt"
CreateDirectory "$SMPROGRAMS\**** NFO Viewer"
CreateShortCut "$SMPROGRAMS\**** NFO Viewer\**** NFO Viewer.lnk" "$INSTDIR\**** NFO Viewer.exe"
CreateShortCut "$SMPROGRAMS\**** NFO Viewer\Uninstall.lnk" "$INSTDIR\uninstall.exe"

SectionEnd

Section "Optional Languages"

; Set Section properties
SetOverwrite on

; Set Section Files and Shortcuts
SetOutPath "$INSTDIR\LangDLLs\"
File "C:\Program Files\**** NFO Viewer\LangDLLs\DAMN_NFO_Viewer_CHI.dll"
File "C:\Program Files\**** NFO Viewer\LangDLLs\DAMN_NFO_Viewer_DEU.dll"
File "C:\Program Files\**** NFO Viewer\LangDLLs\DAMN_NFO_Viewer_DUT.dll"
File "C:\Program Files\**** NFO Viewer\LangDLLs\DAMN_NFO_Viewer_ENG.dll"
File "C:\Program Files\**** NFO Viewer\LangDLLs\DAMN_NFO_Viewer_ESL.dll"
File "C:\Program Files\**** NFO Viewer\LangDLLs\DAMN_NFO_Viewer_FRA.dll"
File "C:\Program Files\**** NFO Viewer\LangDLLs\DAMN_NFO_Viewer_ITA.dll"
File "C:\Program Files\**** NFO Viewer\LangDLLs\DAMN_NFO_Viewer_NOR.dll"
File "C:\Program Files\**** NFO Viewer\LangDLLs\DAMN_NFO_Viewer_POR.dll"
File "C:\Program Files\**** NFO Viewer\LangDLLs\DAMN_NFO_Viewer_RUS.dll"
File "C:\Program Files\**** NFO Viewer\LangDLLs\DAMN_NFO_Viewer_SVE.dll"
File "C:\Program Files\**** NFO Viewer\LangDLLs\DAMN_NFO_Viewer_TUR.dll"

SectionEnd

Section -FinishSection

WriteRegStr HKLM "Software\****\${APPNAME}" "" "$INSTDIR"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "DisplayName" "${APPNAME}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString" "$INSTDIR\uninstall.exe"
WriteUninstaller "$INSTDIR\uninstall.exe"

SectionEnd

;Uninstall section
Section Uninstall

;Remove from registry...
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}"
DeleteRegKey HKLM "SOFTWARE\****\${APPNAME}"

; Delete self
Delete "$INSTDIR\uninstall.exe"

; Delete Shortcuts
Delete "$SMPROGRAMS\**** NFO Viewer\**** NFO Viewer.lnk"
Delete "$SMPROGRAMS\**** NFO Viewer\Uninstall.lnk"

; Clean up **** NFO Viewer
Delete "$INSTDIR\**** NFO Viewer.exe"
Delete "$INSTDIR\ReadMe.txt"
Delete "$INSTDIR\history.txt"
Delete "$INSTDIR\license.txt"

; Clean up Optional Languages
Delete "$INSTDIR\LangDLLs\DAMN_NFO_Viewer_CHI.dll"
Delete "$INSTDIR\LangDLLs\DAMN_NFO_Viewer_DEU.dll"
Delete "$INSTDIR\LangDLLs\DAMN_NFO_Viewer_DUT.dll"
Delete "$INSTDIR\LangDLLs\DAMN_NFO_Viewer_ENG.dll"
Delete "$INSTDIR\LangDLLs\DAMN_NFO_Viewer_ESL.dll"
Delete "$INSTDIR\LangDLLs\DAMN_NFO_Viewer_FRA.dll"
Delete "$INSTDIR\LangDLLs\DAMN_NFO_Viewer_ITA.dll"
Delete "$INSTDIR\LangDLLs\DAMN_NFO_Viewer_NOR.dll"
Delete "$INSTDIR\LangDLLs\DAMN_NFO_Viewer_POR.dll"
Delete "$INSTDIR\LangDLLs\DAMN_NFO_Viewer_RUS.dll"
Delete "$INSTDIR\LangDLLs\DAMN_NFO_Viewer_SVE.dll"
Delete "$INSTDIR\LangDLLs\DAMN_NFO_Viewer_TUR.dll"

; Remove remaining directories
RMDir "$SMPROGRAMS\**** NFO Viewer"
RMDir "$INSTDIR\LangDLLs\"
RMDir "$INSTDIR\"

SectionEnd

Function un.onInit

MessageBox MB_YESNO|MB_DEFBUTTON2|MB_ICONQUESTION "Remove ${APPNAMEANDVERSION} and all of its components?" IDYES DoUninstall
 Abort
DoUninstall:

FunctionEnd

Function .onGUIEnd
MessageBox MB_YESNO "Would you like to run ${APPNAMEANDVERSION}?" IDNO NoRun
 Exec "$INSTDIR\**** NFO Viewer.exe"
NoRun:

FunctionEnd

BrandingText "Compiled by ThaNerd"

; eof

Using NSIS 2.07 and LZMA solid compression, resulting installer is 141.143 bytes. Oh, and it has an ugly icon :D

Edited by ThaNerd
  • 3 weeks later...
Posted (edited)

Could you post your installer?

I don't know how to make one myself, but I gonna try (I shouldn't be so difficult when you gave me the source or something)

grtz

EDIT: I can't upload the modified installer because of an upload limit here on msfn, though it is only 169KB

Thanks ThaNerd for the script!

Edited by maybeme
Posted

hmm well in the AutoIT thread I have a script for installing ****...that said I find Jane [link] to be a much better viewer\editor (thanks to Mhz for showing me it)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...