コード例 #1
0
        private void VerifyPath()
        {
            _original = InstallationProcessor.Expand(_original);
            if (!Path.IsPathRooted(_original))
            {
                _original = Path.Combine(InstallationProcessor.Expand("%targetdir%"), _original);
            }

            _shortcut = InstallationProcessor.Expand(_shortcut);
            var file = Path.GetFileName(_original);

            if (string.IsNullOrEmpty(file))
            {
                throw new Exception("Can not parse file name from: " + _original);
            }
            if (!_shortcut.EndsWith(file, StringComparison.InvariantCultureIgnoreCase))
            {
                _shortcut = Path.Combine(_shortcut, file);
            }
        }
コード例 #2
0
ファイル: _Program.cs プロジェクト: gusarov/tinyinstaller
 static void UninstallCommit(string identity, string lastDirectoryToRemove, int waitForProcess)
 {
     WaitForTerminating(waitForProcess);
     InstallationProcessor.UninstallCommit(identity, lastDirectoryToRemove);
 }