DoctorDeploy.com - Das unabhängige Forum für Installation und Softwareverteilung Your Ad Here    
Doctor Deploy: software deployment, - distribution, repackaging, msi, windows installer, client management, installation, setup : forum - discussion boards 
  Search   •  RSS/Newsletter   •  Shop   •  Register  •  Profile  •  Log in to check your private messages  •  Log in
 Hide Cancel Button during MSI Installation View next topic
View previous topic
Post new topicReply to topic
Author Message
bingen
Melchisedech
Melchisedech


Joined: 04 Jun 2004
Posts: 227
Location: 48°42' n.Br./09°09' ö.L.

PostPosted: Thu, 15.Nov.2007, 10:40 Back to top

immer wieder stellt sich bei automatisierten installationen das problem, dass der cancel-button in den windows installer dialogen ausgeblendet werden soll (damit die benutzer die installation nicht abbrechen koennen).

seit der msi version 2.0 gibts dafuer einen commandline-switch:
Code:
msiexec.exe /i packagename.msi /qb!


der schalter "!" funktioniert allerdings nur im basic ui mode (qb)

per script oder c++ geht das ganze natuerlich auch:

vbscript:
Code:
Dim Installer As Object
Set Installer = CreateObject("WindowsInstaller.Installer")
Installer.UILevel = msiUILevelBasic + msiUILevelHideCancel
Installer.InstallProduct "packagename.msi"


c++:
Code:
INSTALLUILEVEL uiPrevLevel = MsiSetInternalUI( INSTALLUILEVEL(INSTALLUILEVEL_BASIC | INSTALLUILEVEL_HIDECANCEL), 0);
UINT uiStat = MsiInstallProduct(_T("packagename.msi"), NULL);
View user's profileSend private message
AddThis Social Bookmark Button
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Service provided by flatbyte.com :: Powered by phpBB :: FI Theme :: Imprint :: All times are GMT + 1 Hour