Jump to content

Windows Installer Helper Utility


xper

Recommended Posts

Hi Benjamin,

Currently Im trying to fix some bugs which I found after modifying WIHU last time yesterday. May be this evening or tomorrow I'll present you a new version.
Yeah, I think I found a bug. Currently, DefaultHome variable in Environment section of install.ini is not working.

I have set it like this:

[Environment]
Personal=D:\%ThisUser%

DefaultHome=%Personal%

but it does not appear under "Basisordner" anymore ( see pic ) and seemingly it is not being used because after the new installation, homepath und homedrive still point to C:\Dokumente und Einstellungen.

I'll of course mention you on my web page

Thanks, I hope there will be a lot of names to mention there ! :)

Bye,

Alex

Link to comment
Share on other sites


@Booster:

I may be mistaken but I think Wihu is not a tool to be called at this early stage in a Windows installation. The reason for this is the fact that Wihu is not fully automatic installing or adding users. There is some user input required so I would call it semiqutomatic. :)

I guess there are two ways to call Wihu. ( there may be more but those 2 come to mind currently ):

1. Calling Wihu after Administrator login instead of using the runonceex process.

This means that you call Wihu in runonceex.cmd (which is called in cmdlines.txt) and use it to install your software semiautomatic.

2. Calling Wihu after the runonceex process finished and right before Windows Installation is over.

This means that you also call Wihu in runonceex.cmd but at the end of the installation process just to add additional software to install or add users.

I do it like this:

I install all my necessary programs using runonceex so they get installed first, then, after cleanup I call Wihu to add users. That way, all my programs are installed and Wihu is the end of the installation process.

I may add Software which I don´t want installed on all PC´s to Wihu because with Wihu it is possible to choose which software is getting installed but currently I am not doing this.

So my installation looks like this:

cmdlines.txt

[COMMANDS]

"REGEDIT /S regtweaks.reg"
"REGEDIT /S computertweaks.reg"
"REGEDIT /S RunOnceUser.reg"

"RunOnceEx.cmd"
"RunOnceUser.cmd"

RunOnceEx.cmd

cmdow @ /HID
@echo off

SET CDROM=%CD:~0,2%

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installiere Anwendungen" /f

REG ADD %KEY%\001 /VE /D "Chipsatztreiber Installationsversuch" /f
REG ADD %KEY%\001 /V 1 /D "%SYSTEMDRIVE%\install\Intel\Setup.exe -INTELIDE -s" /f
REG ADD %KEY%\001 /V 2 /D "%SYSTEMDRIVE%\install\Via\Setup.exe -s" /f

REG ADD %KEY%\006 /VE /D "Microsoft NET Framework 1.1" /f
REG ADD %KEY%\006 /V 1 /D "%SYSTEMDRIVE%\install\Framework\netfx.msi /qb" /f

REG ADD %KEY%\016 /VE /D "Diverse Microsoft Powertoys" /f
REG ADD %KEY%\016 /V 1 /D "%SYSTEMDRIVE%\install\TweakUI.msi /qn" /f
REG ADD %KEY%\016 /V 2 /D "%SYSTEMDRIVE%\install\SlideshowPowertoySetup.exe /s /v\"ALLUSERS=2 /qn\"" /f
REG ADD %KEY%\016 /V 3 /D "%SYSTEMDRIVE%\install\HtmlgenPowertoySetup.exe /s /v\"ALLUSERS=2 /qn\"" /f
REG ADD %KEY%\016 /V 4 /D "%SYSTEMDRIVE%\install\ImageResizerPowertoySetup.exe /s /v\"ALLUSERS=2 /qn\"" /f

REG ADD %KEY%\018 /VE /D "Sun Java 1.4.2.04" /f
REG ADD %KEY%\018 /V 1 /D "%SYSTEMDRIVE%\install\java14204.exe /s /v/qn" /f

REG ADD %KEY%\019 /VE /D "Winrar 3.3" /f
REG ADD %KEY%\019 /V 1 /D "%SYSTEMDRIVE%\install\Winrar\wrar33d_se.exe /s" /f

REG ADD %KEY%\022 /VE /D "Ahead Nero 6.3.1.17 inkl. Plugins" /f
REG ADD %KEY%\022 /V 1 /D "REGEDIT /S %CDROM%\Setup\Nero\register.reg" /f
REG ADD %KEY%\022 /V 2 /D "%CDROM%\Setup\Nero\nero63117.exe /SILENT /NOREBOOT /NO_UI" /f
REG ADD %KEY%\022 /V 3 /D "CMD /C copy /Y %CDROM%\Setup\Nero\Plugins\*.dll \"%COMMONPROGRAMFILES%\Ahead\AudioPlugins\\"" /f

REG ADD %KEY%\023 /VE /D "Apple Quicktime 6.5" /f
REG ADD %KEY%\023 /V 1 /D "%CDROM%\Setup\Quicktime\QuickTimeFullInstaller.exe" /f
REG ADD %KEY%\023 /V 2 /D "CMD /C copy /Y %CDROM%\Setup\Quicktime\QuickTime.qtp \"%ALLUSERSPROFILE%\Anwendungsdaten\QuickTime\\"" /f
REG ADD %KEY%\023 /V 3 /D "CMD /C copy /Y %CDROM%\Setup\Quicktime\QuickTimeFavorites.qtr \"%ALLUSERSPROFILE%\Anwendungsdaten\QuickTime\\"" /f

REG ADD %KEY%\024 /VE /D "Real Player Alternative 1.23 " /f
REG ADD %KEY%\024 /V 1 /D "%CDROM%\Setup\RealAlternative\realalt123.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\027 /VE /D "Microsoft Office 2003 Pro inkl. SP1" /f
REG ADD %KEY%\027 /V 1 /D "%CDROM%\Setup\Office2003\SETUP.EXE TRANSFORMS=%CDROM%\Setup\Office2003\UNATTEND.MST /qb-" /f

REG ADD %KEY%\028 /VE /D "Adobe Reader 6.02" /f
REG ADD %KEY%\028 /V 1 /D "%CDROM%\Setup\Adobe\Reader.msi /qn" /f
REG ADD %KEY%\028 /V 2 /D "%CDROM%\Setup\Adobe\Update_602.exe /S /v/qn" /f

REG ADD %KEY%\029 /VE /D "Adobe Reader Speedup 1.28" /f
REG ADD %KEY%\029 /V 1 /D "%CDROM%\Setup\AR_Speedup\ReaderSpeedUp.exe" /f

REG ADD %KEY%\031 /VE /D "Macromedia Flash und Shockwave Player" /f
REG ADD %KEY%\031 /V 1 /D "%CDROM%\Setup\Player\Shockwave_Installer_Full.exe /s" /f
REG ADD %KEY%\031 /V 2 /D "%CDROM%\Setup\Player\flashplayer7_winax.exe /Q:U /R:N" /f

REG ADD %KEY%\032 /VE /D "Winamp 5.0.4 inkl. Plugins" /f
REG ADD %KEY%\032 /V 1 /D "%CDROM%\Setup\Winamp\Winamp.msi /qb ini=%CDROM%\Setup\Winamp\winamp.ini" /f
REG ADD %KEY%\032 /V 2 /D "CMD /C copy /Y %CDROM%\Setup\Winamp\Plugins\*.dll \"%PROGRAMFILES%\Winamp\Plugins\\"" /f
REG ADD %KEY%\032 /V 3 /D "CMD /C copy /Y %CDROM%\Setup\Winamp\Plugins\*.exe \"%PROGRAMFILES%\Winamp\Plugins\\"" /f

REG ADD %KEY%\033 /VE /D "Kaspersky Anti-Virus 5.0.149" /f
REG ADD %KEY%\033 /V 1 /D "%CDROM%\Setup\Kaspersky\Anti-Virus\kav5.0.149.4_personalde.exe /S" /f
REG ADD %KEY%\033 /V 2 /D "CMD /C copy /Y %CDROM%\Setup\Kaspersky\Anti-Virus\000679A5(2005).key \"%PROGRAMFILES%\Kaspersky Lab\Kaspersky Anti-Virus Personal\000679A5(2005).key.yek\"" /f

REG ADD %KEY%\034 /VE /D "Sygate Personal Firewall Pro 5.5" /f
REG ADD %KEY%\034 /V 1 /D "%CDROM%\Setup\Sygate_Personal_Firewall_Pro\pspf.msi /QB Reboot=Supress" /f
REG ADD %KEY%\034 /V 2 /D "REGEDIT /S %CDROM%\Setup\Sygate_Personal_Firewall_Pro\offline.reg" /f

REG ADD %KEY%\035 /VE /D "Acronis True Image 8" /f
REG ADD %KEY%\035 /V 1 /D "WScript.exe %CDROM%\Setup\TrueImage\install.vbs" /f

REG ADD %KEY%\038 /VE /D "Importiere Software Registry Tweaks" /f
REG ADD %KEY%\038 /V 1 /D "REGEDIT /S %systemdrive%\softwaretweaks.reg" /f

REG ADD %KEY%\039 /VE /D "Temp Dateien entfernen" /f
REG ADD %KEY%\039 /V 1 /D "%systemdrive%\cleanup.cmd" /f

REG ADD %KEY%\040 /VE /D "Benutzer anlegen und neustarten" /f
REG ADD %KEY%\040 /V 1 /D "%CDROM%\Setup\wihu.exe /SkipSoftware /NoCancel /Ds" /f

exit

Hope that helps !

Bye,

Alex

Link to comment
Share on other sites

thx midiboy :)

I used RunOnceEx.cmd before but like the option to select which programs to install.

I will try out your solution to force installation of specific programs (system updates) in RunOnceEx.cmd and then call WIHU in the end.

Link to comment
Share on other sites

Currently Im trying to fix some bugs which I found after modifying WIHU last time yesterday. May be this evening or tomorrow I'll present you a new version.

Benjamin

What my use concern...no bugs still running smooth...

Link to comment
Share on other sites

@visaversa: There is a bug :) I removed combo box control again from first page because it make things complicated ... may be I'll add this in future if I find a better solution.

@midiboy: Sorry, I forgot to inform you that DefaultHome should be moved to [users] section in future. It's more logical. PLEASE everyone change this!

Benjamin

Link to comment
Share on other sites

Hi Benjamin,

@midiboy: Sorry, I forgot to inform you that DefaultHome should be moved to [users]section in future. It's more logical. PLEASE everyone change this!

mhh, it still does not work though. But maybe I am doing something wrong.

This is my install.ini now:

[Environment]

Personal=D:\%ThisUser%
My Video=D:\%ThisUser%\Eigene Videos
My Music=D:\%ThisUser%\Eigene Musik
My Pictures=D:\%ThisUser%\Eigene Bilder
Favorites=D:\%ThisUser%\Favoriten

[users]
DefaultHome=%Personal%

But it is not working. "Basisordner" in Wihu is still empty.

Am I doing something wrong ?

Thanks,

Alex

Link to comment
Share on other sites

@visaversa: There is a bug :) I removed combo box control again from first page because it make things complicated ... may be I'll add this in future if I find a better solution.

@midiboy: Sorry, I forgot to inform you that DefaultHome should be moved to [users] section in future. It's more logical. PLEASE everyone change this!

Benjamin

Ok no prop...can live whit that, there is still the option to make one of the users default user :-)

But i would like to exclude the other doh...just as you said

But I could add an "Load users" button instead to load entire users list. I think on my second page I can remove temporary environment string control because no one really needs this. Instead I add the ability to load new users.
Link to comment
Share on other sites

@booster:

I used RunOnceEx.cmd before but like the option to select which programs to install.

Mhh, then do it that way ! It should work if you call Wihu in runonceex.cmd at the very top and then do all your installing from within Wihu.

You just should NOT call Wihu from cmdlines.txt directly. At least thats what I thought you did before or did I misunderstand you there ?

Bye,

Alex

Link to comment
Share on other sites

@Benjamin

WIHU is started at T-13 mark (CMDLINES.TXT)

I may be mistaken but I think Wihu is not a tool to be called at this early stage in a Windows installation. The reason for this is the fact that Wihu is not fully automatic installing or adding users. There is some user input required so I would call it semiqutomatic.

Really? :) Please clarify this: Can WIHU A) be run from cmdlines.txt or a batch file called by cmdlines.txt without problems (user creation and all stuff, etc.) and B ) can it be run totally in an automatic way?

thx

Link to comment
Share on other sites

@all: So I attached new release (please see some postings below) ... and yes midiboy this was a bug which is fixed now.

@booster: I'll try to find your problem. Also note, running WIHU under Windows 2000 is not fully possible because of this privilege restriction. Please send me your logfile and may be ini file.

Benjamin

Edited by BenjaminKalytta
Link to comment
Share on other sites

I still have a problem with command.9=PowerDVD\Setup.exe-s -f1%SRCDRIVE%\PowerDVD\setup.iss" -f2"%systemdrive%\setup.log.

does not work any ideas?

EDIT: never mind i solved it...

command.9=PowerDVD\Setup.exe-s -f1%SRCDRIVE%\software\PowerDVD\setup.iss" -f2"%systemdrive%\setup.log

Link to comment
Share on other sites

@visaversa: Please show me your entire ini file.

Please specify /verbose switch and save the log with /log=logfile and post it here or mail it to me.

Is PowerDVD Folder in WIHU application folder? (It has to be otherwise try command.9=%curdir%\PowerDVD\Setup.exe)

Relative folders in WIHU always treated as WIHU application directory relative folders.

Benjamin

Link to comment
Share on other sites

@visaversa: Please show me your entire ini file.

Please specify /verbose switch and save the log with /log=logfile and post it here or mail it to me.

Is PowerDVD Folder in WIHU application folder? (It has to be otherwise try command.9=%curdir%\PowerDVD\Setup.exe)

Relative folders in WIHU always treated as WIHU application directory relative folders.

Benjamin

see above edit...sorry for the post

Link to comment
Share on other sites

@booster:
I used RunOnceEx.cmd before but like the option to select which programs to install.

Mhh, then do it that way ! It should work if you call Wihu in runonceex.cmd at the very top and then do all your installing from within Wihu.

You just should NOT call Wihu from cmdlines.txt directly. At least thats what I thought you did before or did I misunderstand you there ?

Bye,

Alex

I did call it directly from CMDLINES.TXT and If I use "SkipSettings" to not create a user, programs install fine :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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