How to remove "Welcome to the installation wizard" from the Visual Studio Installer project

I have a Visual Studio installer project that I create in Visual Studio 2010, and I cannot figure out how to remove the "Welcome to the" Product Name "installation wizard from the wizard's dialog boxes.

For example: How to delete the text “Welcome to the Setup1 Setup1 Wizard” in the screenshot below?

enter image description here

+9
source share
6 answers

This is not supported by Visual Studio installation projects.

MSI Orca, , . , , , .

+6

"" , . VS 2005 -

  • "" - " "
  • "" " "

" (A)" ( "" " " ) , visible false. (A) "" .

:

  • BannerBitmap
  • BannerText
  • BodyText

( ) " ".

+7

, , , .

1. removebannertext.vbs :

Option Explicit
If (Wscript.Arguments.Count < 1) Then
  Wscript.Echo "Windows Installer utility to execute SQL queries against an installer database." & vbCRLf & " The 1st argument specifies the path to the MSI database, relative or full path"
  Wscript.Quit 1
End If
Dim openMode : openMode = 1 'msiOpenDatabaseModeTransact
On Error Resume Next
Dim installer : Set installer = Wscript.CreateObject("WindowsInstaller.Installer") : CheckError
' Open database
Dim database : Set database = installer.OpenDatabase(Wscript.Arguments(0), openMode) : CheckError
Wscript.Echo "Removing all BannerText..."
Dim query
query = "UPDATE 'Control' SET 'Control'.'Attributes'=0 WHERE 'Control'.'Control'='BannerText'"
Dim view : Set view = database.OpenView(query) : CheckError
view.Execute : CheckError
database.Commit
Wscript.Echo "Done."
Wscript.Quit 0
Sub CheckError
Dim message, errRec
If Err = 0 Then Exit Sub
message = Err.Source & " " & Hex(Err) & ": " & Err.Description
If Not installer Is Nothing Then
  Set errRec = installer.LastErrorRecord
  If Not errRec Is Nothing Then message = message & vbCRLf & errRec.FormatText
End If
Wscript.Echo message
Wscript.Quit 2
End Sub

2. PostBuildEvent :

cscript.exe "$(ProjectDir)removebannertext.vbs" "$(BuiltOuputPath)"
+5

Goner Doug Answer .

ProgressBar BannerText . , BannnerText, , BannerText, . Banner ProgressBar, . , ProgressBar bannner.

, query

query = "UPDATE `Control` SET `Control`.`Text`='' WHERE `Control`.`Control`='InstalledBannerText' OR `Control`.`Control`='BannerText' OR `Control`.`Control`='RemoveBannerText'"

.

Option Explicit
If (Wscript.Arguments.Count < 1) Then
Wscript.Echo "Windows Installer utility to execute SQL queries against an installer database." & vbCRLf & " The 1st argument specifies the path to the MSI database, relative or full path"
Wscript.Quit 1
End If
Dim openMode : openMode = 1 'msiOpenDatabaseModeTransact
On Error Resume Next
Dim installer : Set installer = Wscript.CreateObject("WindowsInstaller.Installer") : CheckError
' Open database
Dim database : Set database = installer.OpenDatabase(Wscript.Arguments(0), openMode) : CheckError
Wscript.Echo "Removing all BannerText..."
Dim query
query = "UPDATE `Control` SET `Control`.`Text`='' WHERE `Control`.`Control`='InstalledBannerText' OR `Control`.`Control`='BannerText' OR `Control`.`Control`='RemoveBannerText'"
Dim view : Set view = database.OpenView(query) : CheckError
view.Execute : CheckError
database.Commit
Wscript.Echo "Done."
Wscript.Quit 0
Sub CheckError
Dim message, errRec
If Err = 0 Then Exit Sub
message = Err.Source & " " & Hex(Err) & ": " & Err.Description
If Not installer Is Nothing Then
Set errRec = installer.LastErrorRecord
If Not errRec Is Nothing Then message = message & vbCRLf & errRec.FormatText
End If
Wscript.Echo message
Wscript.Quit 2
End Sub
+3

You can easily change the welcome text by changing the project file in notepad. (i.e. project1.vdproj) Be sure to change ProductName or Title. I can’t remember which one, and then rebuild the project, and everything is ready.

+2
source

One solution (if the process of creating your installation is not lengthy) - you will need to make the setting from scratch and rename it at that time, for example My Setup, when it offers the name of the setting.

+1
source

All Articles