This is not popping up to "Run As Administrator". Here is my code. I do not think this requires a manifest file? Do you see any errors in the code? I also included the manifest file in case you think that is required, that did not pop up the UAC Yes/No message either.
vb Code:
Dim installString As String = "/i " & Chr(34) & Application.StartupPath & "\setup\MySQLSetup.msi" & Chr(34) & " /qn INSTALLDIR=" & Chr(34) & Application.StartupPath & "\MySQL" & Chr(34) & " PORT=55655 " & "PASSWORD=test" & " SERVICENAME=PlazDB" MessageBox.Show("msiexec.exe" & installString) Dim oProcess As New Process() Dim oStartInfo As New ProcessStartInfo("msiexec.exe", installString) If System.Environment.OSVersion.Version.Major >= 6 Then 'Vista or higher check oProcess.StartInfo.Verb = "runas" End If oStartInfo.UseShellExecute = True oStartInfo.RedirectStandardOutput = False oProcess.StartInfo = oStartInfo oProcess.Start() oProcess.WaitForExit()
xml Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <asmv1:assembly manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2"> <asmv1:assemblyIdentity name="PlazSalesConfigWizard" version="1.2.0.0" type="win32" processorArchitecture="x86"/> <asmv2:trustInfo> <asmv2:security> <asmv2:requestedPrivileges> <asmv2:requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> </asmv2:requestedPrivileges> </asmv2:security> </asmv2:trustInfo> </asmv1:assembly>

