Skip to content

Commit 7021a9c

Browse files
committed
small perks again
1 parent c6c0ccc commit 7021a9c

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

Vs2017-LIGUI/IsoWizard.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<Label x:Name="_hottxt">Save ISO File by clicking START</Label>
6464
<Button x:Name="_hotbtn" Grid.Column="1" Click="_hotbtn_Click">Start</Button>
6565
</Grid>
66-
<ProgressBar x:Name="_hotprog" Height="30px" Margin="4px"/>
66+
<ProgressBar x:Name="_hotprog" Height="30px" Margin="0,4"/>
6767
</StackPanel>
6868
</GroupBox>
6969
</StackPanel>

Vs2017-LIGUI/IsoWizard.xaml.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ private void _batchbtn_Click(object sender, RoutedEventArgs e)
5656
if (Path.GetExtension(path).ToLower() != ".bat") path += ".bat";
5757
File.WriteAllText(path, string.Format(BatContent, batchproduct, batchtemplate));
5858
if (MessageBox.Show("Batchfile has been written to " + path + "\r\nDo you want to start the installation?", "Succeed", MessageBoxButton.YesNo, MessageBoxImage.Information) == MessageBoxResult.Yes)
59-
Process.Start("explorer", path);
59+
Process.Start(new ProcessStartInfo() {
60+
FileName = path,
61+
WorkingDirectory = _layout.Text
62+
});
6063
}
6164

6265
private void _destbtn_Click(object sender, RoutedEventArgs e)
@@ -183,9 +186,10 @@ echo Welcome to Visual Studio {0} Offline Installation
183186
echo:
184187
echo Before installation begin, we need to install certificates first.
185188
echo:
186-
echo The process is not automatic. By pressing enter, we'll show three certificates,
187-
echo and it's your job is to next-clicking until wizards finished.
189+
echo The process is not automatic. By pressing enter, we'll lauch three certificates and
190+
echo it's your job to next-clicking them until all wizards finished.
188191
pause>nul
192+
echo:
189193
echo Launching certificates ...
190194
forfiles /S /M *.p12 /C ""cmd /c explorer @file""
191195
echo Do not press enter until all certificates has been installed.

Vs2017-LIGUI/Vs2017-LayoutInGUI.csproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,7 @@
4848
<Private>True</Private>
4949
</Reference>
5050
<Reference Include="System" />
51-
<Reference Include="System.Data" />
5251
<Reference Include="System.Windows.Forms" />
53-
<Reference Include="System.Xml" />
54-
<Reference Include="Microsoft.CSharp" />
55-
<Reference Include="System.Core" />
56-
<Reference Include="System.Xml.Linq" />
57-
<Reference Include="System.Data.DataSetExtensions" />
5852
<Reference Include="System.Xaml">
5953
<RequiredTargetFramework>4.0</RequiredTargetFramework>
6054
</Reference>

0 commit comments

Comments
 (0)