habe IS2008 Professional Edition version 14
Mein Project ist Basic MSI Project
1.
starte <mein_Project>.msi (in WE 2 Mal klicken)
Kommen die Dialogs:
- Welcome
- Ready to Install the Program
- Finish
Ist OK!
2.
Console:
msiexec.exe /i "<mein_Project>.msi" INSTALLDIR="<ZielPath>" ARPSYSTEMCOMPONENT=1 /L*VX "<%TEMP%>\mein_Project.log"
Kommen die Dialogs:
- Welcome
- Ready to Install the Program
- Finish mit "Show the Windows Instaler log"
Wie kann ich Finish-Dialog ohne "Show the Windows Instaler log" haben?
Mit Orca erstellt:
1. File CustomAction.idt
Action Type Source Target
setAllUsersProfile2K 51 ALLUSERSPROFILE [%ALLUSERSPROFILE]
SetAllUsersProfileNT 51 ALLUSERSPROFILE [%SystemRoot]\Profiles\All Users
SetARPINSTALLLOCATION 51 ARPINSTALLLOCATION [INSTALLDIR]
setUserProfileNT 51 USERPROFILE [%USERPROFILE]
ShowMsiLog 226 WindowsFolder [WindowsFolder]notepad.exe "[MsiLogFileLocation]"
2. File Property.idt
Property Value
_IsMaintenance Change
_IsSetupTypeMin Typical
AgreeToLicense No
ApplicationUsers AllUsers
ARPURLINFOABOUT http://<Firma>
DefaultUIFont Tahoma8
DialogCaption InstallShield for Windows Installer
DiskPrompt [1]
Display_IsBitmapDlg 1
DisplayNameCustom Custom
DisplayNameMinimal Minimal
DisplayNameTypical Typical
DWUSINTERVAL 30
ISCHECKFORPRODUCTUPDATES 1
ErrorDialog SetupError
InstallChoice AR
INSTALLLEVEL 100
ProgressType0 install
ProgressType1 Installing
ProgressType2 installed
ProgressType3 installs
RebootYesNo Yes
ReinstallModeText omus
RestartManagerOption CloseRestart
SetupType Typical
SHOWLAUNCHPROGRAM 0
Danke in Voraus
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Show the Windows Instaler log
Started by
bernard
, Mar 05 2009 14:33
4 replies to this topic
Posted 06 March 2009 - 10:07
Hallo,
naja wenn du die ChkBox generell nicht haben willst, kannst du diese im Dialog "SetupCompleteSuccess" löschen oder auch Visible auf "false" setzen.
Weiter hast du aber auch noch die Möglichkeit beim "Verhalten" der ChkBox eine Bedingung anzugeben sprich ein property(unten rechts beim der Ansicht Verhalten des Dialogfeldes). Hier kannst du zb. die Bedingung "Hide" mit der Property NOSHOWLOGFILE verknüpfen, das Property setzt man dann beim Aufruf des Pakets über msiexec auf einen Wert, zb. NOSHOWLOGFILE="1".
naja wenn du die ChkBox generell nicht haben willst, kannst du diese im Dialog "SetupCompleteSuccess" löschen oder auch Visible auf "false" setzen.
Weiter hast du aber auch noch die Möglichkeit beim "Verhalten" der ChkBox eine Bedingung anzugeben sprich ein property(unten rechts beim der Ansicht Verhalten des Dialogfeldes). Hier kannst du zb. die Bedingung "Hide" mit der Property NOSHOWLOGFILE verknüpfen, das Property setzt man dann beim Aufruf des Pakets über msiexec auf einen Wert, zb. NOSHOWLOGFILE="1".
Posted 09 March 2009 - 12:07
QUOTE |
oder auch Visible auf "false" setzen |
habe zuerst probiert ohne das Projekt zu ändern.
Mein Projekt ->
User Interface -> Dialogs -> SetupCompleteSuccess -> CheckShowMsiLog (CheckBox):
- Default=False
- Enabled=True
- Property=ISSHOWMSILOG
- Visible=False
cmd>
1.
msiexec.exe /i "<mein_Project>.msi" INSTALLDIR="<ZielPath>" ISSHOWMSILOG=0 ARPSYSTEMCOMPONENT=1 /L*VX "<%TEMP%>\mein_Project.log"
Es kommt Finish-Dialog mit "Show the Windows Instaler log" (Häkchen ist an).
aus dem LOG-File:
...
MSI © (8C:4C) [11:37:10:345]: Command Line: INSTALLDIR=<ZielPath> ISSHOWMSILOG=0 ARPSYSTEMCOMPONENT=1 CURRENTDIRECTORY=<SourcePath>\msi CLIENTUILEVEL=0 CLIENTPROCESSID=3724
MSI © (8C:4C) [11:37:13:189]: Switching to server: ROOTDRIVE="C:\" SECONDSEQUENCE="1" EXECUTEACTION="INSTALL" ACTION="INSTALL" SOURCEDIR="<SourcePath>\msi\" TARGETDIR="C:\" ALLUSERSPROFILE="C:\ProgramData\" INSTALLDIR=<ZielPath> COMMON="<ZielPath>\common\" DELTA="C:\ProgramData\delta\" TRACE="<ZielPath>\common\trace\" USERPROFILE="C:\Users\Administrator\" CLIENTPROCESSID="3724" CLIENTUILEVEL="0" CURRENTDIRECTORY="<SourcePath>\msi" ARPSYSTEMCOMPONENT="1" USERNAME="test5" ISSHOWMSILOG="0" ADDLOCAL=Workstation
MSI (s) (98:B8) [11:37:23:642]: Command Line: ROOTDRIVE=C:\ SECONDSEQUENCE=1 EXECUTEACTION=INSTALL ACTION=INSTALL SOURCEDIR=<SourcePath>\msi\ TARGETDIR=C:\ ALLUSERSPROFILE=C:\ProgramData\ INSTALLDIR=<ZielPath> COMMON=<ZielPath>\common\ DELTA=C:\ProgramData\delta\ TRACE=<ZielPath>\common\trace\ USERPROFILE=C:\Users\Administrator\ CLIENTPROCESSID=3724 CLIENTUILEVEL=0 CURRENTDIRECTORY=<SourcePath>\msi ARPSYSTEMCOMPONENT=1 USERNAME=test5 ISSHOWMSILOG=0 ADDLOCAL=Workstation ACTION=INSTALL
Property(S): ISSHOWMSILOG = 0
2.
msiexec.exe /i "<mein_Project>.msi" INSTALLDIR="<ZielPath>" ISSHOWMSILOG=1 ARPSYSTEMCOMPONENT=1 /L*VX "<%TEMP%>\mein_Project.log"
Es kommt Finish-Dialog mit "Show the Windows Instaler log" (Häkchen ist an) auch.
noch andere Idee?
Posted 09 March 2009 - 12:18
Du musst das Property als "Bedingung" im Dialog einbauen und nicht dort als Property definieren. Dafür gibt es extra das Menü "Bedingungen" in der Dialogansicht. Siehe mein letzten Beitrag. Dort kann man abhängig vom setzen einer Property einen Text bzw. eine ChkBox mit "hide" und "Show" ein bzw. ausblenden. Funktionieren tut das 100 Pro, machen ich selbst in einigen Projekten.
Edited by ali, 09 March 2009 - 12:21.
Posted 10 March 2009 - 07:49
Habe Vista (Ultimate) auf dem TEST PC.
Unter WinXP (+SP2):
1.
msiexec.exe /i "<mein_Project>.msi" INSTALLDIR="<ZielPath>" ISSHOWMSILOG=1 ARPSYSTEMCOMPONENT=1 /L*VX "<%TEMP%>\mein_Project.log"
2.
mit ISSHOWMSILOG=0
3.
ohne ISSHOWMSILOG=
Es kommt Finish-Dialog ohne "Show the Windows Instaler log" !
Unter WinXP (+SP2):
1.
msiexec.exe /i "<mein_Project>.msi" INSTALLDIR="<ZielPath>" ISSHOWMSILOG=1 ARPSYSTEMCOMPONENT=1 /L*VX "<%TEMP%>\mein_Project.log"
2.
mit ISSHOWMSILOG=0
3.
ohne ISSHOWMSILOG=
Es kommt Finish-Dialog ohne "Show the Windows Instaler log" !