目前分類:安裝檔打包 (10)

瀏覽方式: 標題列表 簡短摘要

直接全部備份啦。

最後瀏覽日期:2018/01/26
Undoing WiX Custom Actions During Uninstall

文章標籤

Robert 發表在 痞客邦 留言(0) 人氣()

直接全部備份啦。

最後瀏覽日期:2018/01/26
Creating WiX Custom Actions in C# and Passing Parameters

文章標籤

Robert 發表在 痞客邦 留言(0) 人氣()

Windows Installer Error Messages

一樣沒有中文哦..

 

文章標籤

Robert 發表在 痞客邦 留言(0) 人氣()

這個問題找很久..。
起初以為是XML的關係;結果沒一個有效。 '\n'也是。

絕大多數的設定,都是寫在你的 Installer Project 專案檔(.vdproj);

文章標籤

Robert 發表在 痞客邦 留言(0) 人氣()

Installer Project 還可以用在網站部屬上;真夠嗆的啦!

使用 Web Setup Project 部署網站

 

文章標籤

Robert 發表在 痞客邦 留言(0) 人氣()

將來會用到

如何對 [Windows 服務] 與 [安裝專案的自訂動作] 進行除錯

 

文章標籤

Robert 發表在 痞客邦 留言(0) 人氣()

這裡有些參考資料:
Create custom dialogs for an Setup project in Visual Studio 2015

使用 Orca 會用到的參考資料:

文章標籤

Robert 發表在 痞客邦 留言(0) 人氣()

System.Configuration.Install.Installer

  1. 有 "base.OnAfterInstall( savedState );"  才會觸發"AfterInstall"事件.
    1. "OnAfterInstall_base"
    2. "AfterInstall"
    3. "OnAfterInstall"
  2. 沒有 "base.OnAfterInstall( savedState );"  "OnAfterInstall"一律優先執行.
    1. "OnAfterInstall_base"
    2. "OnAfterInstall"

程式碼:

public InstallerHelp() : base()
{
    // 綁定完成安裝事件的處理方法.
    this.AfterInstall += new InstallEventHandler( CustomAfterInstall );
}
private void CustomAfterInstall( object sender, InstallEventArgs e )
{
    MessageBox.Show( "AfterInstall" );
}
protected override void OnAfterInstall( IDictionary savedState )
{
    MessageBox.Show( "OnAfterInstall_base" );
    base.OnAfterInstall( savedState );  // 觸發"AfterInstall"事件.
    MessageBox.Show( "OnAfterInstall" );
}

 

文章標籤

Robert 發表在 痞客邦 留言(0) 人氣()

  1. 在你的專案底下,建立一個 class ,繼承 System.Configuration.Install.Installer
        範例:
    [RunInstaller(true)]
    public partial class InstallerHelp : Installer
    {
        public override void Install(IDictionary stateSaver)
        {
            base.Install(stateSaver);
    
            string strKey = Context.Parameters[“KeyValue”];
            string sPath = @”c:\Test.txt”;
    
            if (File.Exists(sPath))
                File.Delete(sPath);
            File.WriteAllText(sPath, strKey);
        }
    }
  2. 在你的 Installer Porject 右鍵 ->「View」->「檔案系統」;
        「Application Folder」-> 右鍵 ->「Add」->「專案輸出」;
文章標籤

Robert 發表在 痞客邦 留言(1) 人氣()

微軟官方文章
.NET Framework 開發人員部署手冊

種類

文章標籤

Robert 發表在 痞客邦 留言(1) 人氣()