我使用wix创建我的msi,现在我有这样的情况,我只想在从旧版本升级到更新版本时运行我的自定义操作。我已尝试将UPGRADINGPRODUCTCODE作为条件,但它不起作用。
答案 0 :(得分:2)
WIX_UPGRADE_DETECTED
在卸载先前版本的上下文中设置。你要找的是用作Action Property of your Major Upgrade的属性。它似乎也MajorUpgrade element设置 <!doctype html>
<html>
<head>
<script type=text/javascript>
var x;
var y;
var z;
var array = Array();
function add_element_to_array()
{
array[x] = document.getElementById("institution_name").value;
array[y] = document.getElementById("degree_obtained").value;
array[z] = document.getElementById("honors_acheieved").value;
x++
y++
z++;
document.getElementById("institution_name").value = "";
document.getElementById("degree_obtained").value = "";
document.getElementById("honors_acheieved").value = "";
}
</script>
</head>
<title>Test Javascript</title>
<h1>Test JS</h1>
<body>
<form name="xform" id="xform" method="post" action="samris.php"/>
Institution Name: <input type="text" name="institution_name" id="institution_name" /> </br>
Degree Obtained: <input type="text" name="degree_obtained" id="degree_obtained" /></br>
Honors Achieved: <input type="text" name="honors_acheieved" id="honors_acheieved" /></br>
</p>
<input type="button" name="Add" id="add" value="add" onclick=add_element_to_array();/>
</form>
<div>
</div>
</body>
</html>
(也许是动作属性)。