mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-2389 Fixed TAB/SPACE issues
This commit is contained in:
parent
23bdb4fa60
commit
1a3925dc3e
@ -11,8 +11,8 @@ namespace Symphony
|
||||
|
||||
private void ExitDlg_Load(object sender, System.EventArgs e)
|
||||
{
|
||||
// Exit installation on completion (don't wait for user to confirm)
|
||||
// After installation exits, the app will be auto launched, but that is specified in Symphony.cs
|
||||
// Exit installation on completion (don't wait for user to confirm)
|
||||
// After installation exits, the app will be auto launched, but that is specified in Symphony.cs
|
||||
Shell.Exit();
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,9 @@ namespace Symphony
|
||||
{
|
||||
public partial class WelcomeDlg : WixSharp.UI.Forms.ManagedForm, IManagedDialog
|
||||
{
|
||||
// Helper function to retrive the user name of the current user. The user name returned from
|
||||
// windows can be on the form DOMAIN\USER or USER@DOMAIN. This function strips away the domain
|
||||
// name and separator, and returns the undecorated user name only.
|
||||
// Helper function to retrive the user name of the current user. The user name returned from
|
||||
// windows can be on the form DOMAIN\USER or USER@DOMAIN. This function strips away the domain
|
||||
// name and separator, and returns the undecorated user name only.
|
||||
private string getUserName()
|
||||
{
|
||||
var name = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
|
||||
@ -22,26 +22,26 @@ namespace Symphony
|
||||
|
||||
void dialog_Load(object sender, System.EventArgs e)
|
||||
{
|
||||
// Populate the dynamic UI elements that can't be set at compile time (background image and
|
||||
// the label containing user name)
|
||||
this.backgroundPanel.BackgroundImage = Runtime.Session.GetResourceBitmap("WixUI_Bmp_Dialog");
|
||||
// Populate the dynamic UI elements that can't be set at compile time (background image and
|
||||
// the label containing user name)
|
||||
this.backgroundPanel.BackgroundImage = Runtime.Session.GetResourceBitmap("WixUI_Bmp_Dialog");
|
||||
this.radioButtonCurrentUser.Text = "Only for me (" + getUserName() + ")";
|
||||
}
|
||||
|
||||
void next_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
// To enable Wix to use the "MSIINSTALLPERUSER" property being set below, ALLUSERS must be set to 2
|
||||
// To enable Wix to use the "MSIINSTALLPERUSER" property being set below, ALLUSERS must be set to 2
|
||||
Runtime.Session["ALLUSERS"] = "2";
|
||||
|
||||
|
||||
if (radioButtonCurrentUser.Checked)
|
||||
{
|
||||
// Install for current user
|
||||
// Install for current user
|
||||
Runtime.Session["MSIINSTALLPERUSER"] = "1"; // per-user
|
||||
Runtime.Session["INSTALLDIR"] = System.Environment.ExpandEnvironmentVariables(@"%LOCALAPPDATA%\Apps\" + Runtime.ProductName);
|
||||
} else if (radioButtonAllUsers.Checked)
|
||||
{
|
||||
// Install for all users
|
||||
// Install for all users
|
||||
Runtime.Session["MSIINSTALLPERUSER"] = ""; // per-machine
|
||||
Runtime.Session["INSTALLDIR"] = System.Environment.ExpandEnvironmentVariables(@"%PROGRAMFILES%\" + Runtime.ProductName);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user