0
我使用的是安裝項目,我創建了一個安裝程序類:打開的應用程序安裝後不能正常工作上安裝「人人」
using System;
using System.ComponentModel;
using System.Runtime.Remoting.Contexts;
namespace Client.Common
{
[RunInstaller(true)]
public class Installer : System.Configuration.Install.Installer
{
public Installer()
{
}
public override void Commit(System.Collections.IDictionary savedState)
{
try
{
base.Commit(savedState);
System.Diagnostics.Process.Start(Context.Parameters["TARGETDIR"] + "Client.UI.exe");
base.Dispose();
}
catch (Exception ex)
{
}
}
}
}
而且我設置我的承諾自定義操作的CustomActionData:
/TARGETDIR="[TARGETDIR]\"
當我運行MSI來安裝這工作得很好「只有我」,它開闢了exe文件,但是當我安裝「所有人」它不運行exe。
我是否錯過了一些可以讓「每個人」都發生的事情?
你是那個系統上的管理員用戶嗎?當你爲所有人安裝應用程序時,它將安裝在全球的位置。 –
@SushilMate是我是管理員 – John
我想這可能會幫助你。 http://stackoverflow.com/a/11490003/2745294 –