回答

0

您需要爲您的MSI文件生成JScript腳本。或者你可以在Orca手動完成。

var installer = WScript.CreateObject("WindowsInstaller.Installer"); 
var filespec = WScript.Arguments(0); 
var msiOpenDatabaseModeTransact = 1; 
var database = installer.OpenDatabase(filespec, msiOpenDatabaseModeTransact); 

Execute("INSERT INTO `AppSearch` (`Property`, `Signature_`) VALUES ('SOMESOFTWAREVERSION', 'SomeSoftwareVersion')"); 
Execute("INSERT INTO `RegLocator` (`Signature_`, `Root`, `Key`, `Name`, `Type`) VALUES ('SomeSoftwareVersion', 2, 'SOFTWARE\\Some Manufacturer\\SomeSoftware', 'SomeSoftwareVersion', 2)"); 
Execute("INSERT INTO `LaunchCondition` (`Condition`, `Description`) VALUES ('SOMESOFTWAREVERSION <> \"#1\"', 'This application cannot be installed with SOMESOFTWARE v1. Setup now will exit.')"); 

function Execute(sql) { 
    view = database.OpenView(sql); 
    view.Execute(); 
    view.Close(); 
} 

它會檢查Wow6432Node在64位Windows一樣維克斯確實

相關問題