Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Joona Romppanen
/
Moya Info Tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit febb15ff
authored
May 30, 2014
by
Tapio Haapala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autoupdate
1 parent
af057217
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
8 deletions
MoyaAdmin/MoyaAdminUI/MoyaAdminUI/App.config
MoyaAdmin/MoyaAdminUI/MoyaAdminUI/Program.cs
MoyaAdmin/MoyaAdminUI/MoyaAdminUI/Properties/AssemblyInfo.cs
MoyaAdmin/MoyaAdminUI/MoyaAdminUI/Properties/Settings.Designer.cs
MoyaAdmin/MoyaAdminUI/MoyaAdminUI/Properties/Settings.settings
MoyaAdmin/MoyaAdminUI/out_moya.nsi
MoyaAdmin/MoyaAdminUI/MoyaAdminUI/App.config
View file @
febb15f
...
...
@@ -22,6 +22,9 @@
<
setting
name
=
"ApiPass"
serializeAs
=
"String"
>
<
value
/>
</
setting
>
<
setting
name
=
"ApplicationVersion"
serializeAs
=
"String"
>
<
value
/>
</
setting
>
</
MoyaAdminUI
.
Properties
.
Settings
>
</
userSettings
>
</
configuration
>
\ No newline at end of file
MoyaAdmin/MoyaAdminUI/MoyaAdminUI/Program.cs
View file @
febb15f
...
...
@@ -15,20 +15,29 @@ namespace MoyaAdminUI
[
STAThread
]
static
void
Main
(
string
[]
args
)
{
Application
.
EnableVisualStyles
();
Application
.
SetCompatibleTextRenderingDefault
(
false
);
if
(!
Debugger
.
IsAttached
)
{
if
(
args
.
Length
==
0
||
args
[
0
]
!=
"-noautoupdate"
)
{
/*
if
(
AutoUpdateLib
.
AutoUpdateCore
.
CheckForUpdates
(
null
))
return
;
//program is required to close by autoupdate (probably updated)
* */
}
}
System
.
Reflection
.
Assembly
a
=
System
.
Reflection
.
Assembly
.
GetExecutingAssembly
();
Version
appVersion
=
a
.
GetName
().
Version
;
string
appVersionString
=
appVersion
.
ToString
();
if
(
Properties
.
Settings
.
Default
.
ApplicationVersion
!=
appVersion
.
ToString
())
{
Properties
.
Settings
.
Default
.
Upgrade
();
Properties
.
Settings
.
Default
.
ApplicationVersion
=
appVersionString
;
}
Application
.
EnableVisualStyles
();
Application
.
SetCompatibleTextRenderingDefault
(
false
);
Application
.
Run
(
new
MainForm
());
}
...
...
MoyaAdmin/MoyaAdminUI/MoyaAdminUI/Properties/AssemblyInfo.cs
View file @
febb15f
...
...
@@ -32,5 +32,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("1.0.
7
")]
[assembly: AssemblyFileVersion("1.0.
7
")]
[assembly: AssemblyVersion("1.0.
8
")]
[assembly: AssemblyFileVersion("1.0.
8
")]
MoyaAdmin/MoyaAdminUI/MoyaAdminUI/Properties/Settings.Designer.cs
View file @
febb15f
...
...
@@ -70,5 +70,17 @@ namespace MoyaAdminUI.Properties {
this
[
"ApiPass"
]
=
value
;
}
}
[
global
::
System
.
Configuration
.
UserScopedSettingAttribute
()]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Configuration
.
DefaultSettingValueAttribute
(
""
)]
public
string
ApplicationVersion
{
get
{
return
((
string
)(
this
[
"ApplicationVersion"
]));
}
set
{
this
[
"ApplicationVersion"
]
=
value
;
}
}
}
}
MoyaAdmin/MoyaAdminUI/MoyaAdminUI/Properties/Settings.settings
View file @
febb15f
...
...
@@ -14,5 +14,8 @@
<Setting Name="ApiPass" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="ApplicationVersion" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>
\ No newline at end of file
MoyaAdmin/MoyaAdminUI/out_moya.nsi
View file @
febb15f
...
...
@@ -22,7 +22,7 @@
Name "MoyaAdminUI moya v1_00_0
7
"
Name "MoyaAdminUI moya v1_00_0
8
"
; DO NOT CHANGE OutFile "installer_temp.exe" !!! AutoPublish requires this.
...
...
@@ -198,7 +198,7 @@ FunctionEnd
Section "!MoyaAdminUI moya stable v1_00_0
7
" SecMain
Section "!MoyaAdminUI moya stable v1_00_0
8
" SecMain
SetShellVarContext current
...
...
@@ -224,8 +224,10 @@ Section "!MoyaAdminUI moya stable v1_00_07" SecMain
; that is referenced to the main project.
File "D:\Devel\proj\moya-info-tools\MoyaAdmin\MoyaAdminUI\MoyaAdminUI\bin\Debug\AutoUpdateLib.dll"
File "D:\Devel\proj\moya-info-tools\MoyaAdmin\MoyaAdminUI\MoyaAdminUI\bin\Debug\MoyaAdminUI.pdb"
File "D:\Devel\proj\moya-info-tools\MoyaAdmin\MoyaAdminUI\MoyaAdminUI\bin\Debug\AutoUpdateLib.pdb"
...
...
@@ -313,8 +315,10 @@ Section "Uninstall"
; that is referenced to the main project.
Delete "$INSTDIR\D:\Devel\proj\moya-info-tools\MoyaAdmin\MoyaAdminUI\MoyaAdminUI\bin\Debug\AutoUpdateLib.dll"
Delete "$INSTDIR\D:\Devel\proj\moya-info-tools\MoyaAdmin\MoyaAdminUI\MoyaAdminUI\bin\Debug\MoyaAdminUI.pdb"
Delete "$INSTDIR\D:\Devel\proj\moya-info-tools\MoyaAdmin\MoyaAdminUI\MoyaAdminUI\bin\Debug\AutoUpdateLib.pdb"
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment