mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-05-10 07:22:29 +12:00
Removed debugging info from PostInstaller application.
Version number upgraded to 3.5. Installer script updated.
This commit is contained in:
parent
72d4d71700
commit
a0228920d8
|
@ -10,13 +10,17 @@ namespace PostInstaller {
|
|||
static int Main(string[] args) {
|
||||
var success = Run(args);
|
||||
|
||||
#if DEBUG
|
||||
Console.Read();
|
||||
#endif
|
||||
|
||||
return success ? 0 : 1;
|
||||
}
|
||||
|
||||
private static bool Run(string[] args) {
|
||||
#if DEBUG
|
||||
Console.WriteLine("Attempting to create IShellItem for file {0}...", args[0]);
|
||||
#endif
|
||||
IShellLink link = (IShellLink)new CShellLink();
|
||||
|
||||
//Win32Shell.SHCreateItemFromParsingName(args[0], IntPtr.Zero, Win32Shell.IShellLinkId, out link);
|
||||
|
@ -33,29 +37,17 @@ namespace PostInstaller {
|
|||
link.SetArguments("");
|
||||
*/
|
||||
|
||||
#if DEBUG
|
||||
Console.WriteLine("Querying for IPropertyStore interface...");
|
||||
#endif
|
||||
IPropertyStore propStore = (IPropertyStore)link;
|
||||
|
||||
PropertyKey appUserModelKey = new PropertyKey(new Guid("9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3"), 5);
|
||||
|
||||
try {
|
||||
object oldValue;
|
||||
propStore.GetValue(ref appUserModelKey, out oldValue);
|
||||
|
||||
Console.WriteLine("AppUserModel.ID value: {0} (type {1})", oldValue, oldValue.GetType().AssemblyQualifiedName);
|
||||
}
|
||||
catch (Exception ex) {
|
||||
#if DEBUG
|
||||
throw;
|
||||
#else
|
||||
Console.WriteLine("Unable to get value of AppUserModel.ID property.");
|
||||
Console.WriteLine(ex);
|
||||
#endif
|
||||
}
|
||||
|
||||
try {
|
||||
Console.WriteLine("Attempting to set property 'System.AppUserModel.ID' to {0}...", args[1]);
|
||||
#endif
|
||||
|
||||
PropertyKey appUserModelKey = new PropertyKey(new Guid("9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3"), 5);
|
||||
propStore.SetValue(ref appUserModelKey, new BStrWrapper(args[1]));
|
||||
propStore.Commit();
|
||||
|
||||
|
@ -72,8 +64,6 @@ namespace PostInstaller {
|
|||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
Console.WriteLine("Done.");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -18,8 +18,8 @@ RequestExecutionLevel user
|
|||
!define WEBSITE_LINK "http://www.klopfenstein.net/lorenz.aspx/ontopreplica"
|
||||
|
||||
# GRAPHICS
|
||||
!define MUI_ICON "..\OnTopReplica\Assets\icon-new.ico"
|
||||
!define MUI_UNICON "..\OnTopReplica\Assets\icon-new-red.ico"
|
||||
!define MUI_ICON "..\OriginalAssets\new-flat-icon.ico"
|
||||
!define MUI_UNICON "..\OriginalAssets\new-flat-icon.ico"
|
||||
!define MUI_HEADERIMAGE
|
||||
!define MUI_HEADERIMAGE_RIGHT
|
||||
!define MUI_HEADERIMAGE_BITMAP "header.bmp"
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<WebPage>publish.htm</WebPage>
|
||||
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>3.4.0.%2a</ApplicationVersion>
|
||||
<ApplicationVersion>3.5.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
|
@ -192,11 +192,66 @@
|
|||
</Compile>
|
||||
<Compile Include="StartupOptions\FourValueTypeConverter.cs" />
|
||||
<Compile Include="StartupOptions\PaddingConverter.cs" />
|
||||
<Compile Include="Strings.cs.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.cs.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Strings.da.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.da.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Strings.de.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.de.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Strings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Strings.es.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.es.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Strings.fi.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.fi.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Strings.it.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.it.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Strings.no.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.no.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Strings.pl.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.pl.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Strings.pt-BR.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.pt-BR.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Strings.pt.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.pt.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Strings.ru.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.ru.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ThumbnailRegion.cs" />
|
||||
<Compile Include="WindowListMenuManager.cs" />
|
||||
<Compile Include="WindowSeekers\BaseWindowSeeker.cs" />
|
||||
|
|
|
@ -33,5 +33,5 @@ using System.Runtime.InteropServices;
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("3.4.0.0")]
|
||||
[assembly: AssemblyFileVersion("3.4.0.0")]
|
||||
[assembly: AssemblyVersion("3.5.0.0")]
|
||||
[assembly: AssemblyFileVersion("3.5.0.0")]
|
||||
|
|
2
OnTopReplica/Strings.Designer.cs
generated
2
OnTopReplica/Strings.Designer.cs
generated
|
@ -1,7 +1,7 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.18051
|
||||
// Runtime Version:4.0.30319.34003
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
|
|
@ -41,10 +41,10 @@
|
|||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="RestoreLastWindowClass" serializeAs="String">
|
||||
<value />
|
||||
<value/>
|
||||
</setting>
|
||||
<setting name="RestoreLastWindowTitle" serializeAs="String">
|
||||
<value />
|
||||
<value/>
|
||||
</setting>
|
||||
<setting name="RestoreLastWindowHwnd" serializeAs="String">
|
||||
<value>0</value>
|
||||
|
|
Loading…
Reference in a new issue