mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ide: Instant setup
git-svn-id: svn://ultimatepp.org/upp/trunk@9042 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
db0c0f3456
commit
dbc1905e4b
6 changed files with 104 additions and 20 deletions
|
|
@ -769,14 +769,14 @@ void AppMain___()
|
|||
#ifdef PLATFORM_WIN32
|
||||
if(!CheckLicense())
|
||||
return;
|
||||
firstinstall = !IsNull(LoadFile(GetExeDirFile("install.upp")));
|
||||
#ifdef flagTESTINSTALL
|
||||
firstinstall = true;
|
||||
String upp_dir = GetFileFolder(GetExeFilePath());
|
||||
String cf = GetExeDirFile("setup-path");
|
||||
#ifndef _DEBUG
|
||||
if(upp_dir != LoadFile(cf))
|
||||
#endif
|
||||
if(firstinstall) {
|
||||
if(!Install())
|
||||
return;
|
||||
SaveFile(ConfigFile("version"), IDE_VERSION);
|
||||
{
|
||||
InstantSetup();
|
||||
SaveFile(upp_dir, cf);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
@ -784,12 +784,12 @@ void AppMain___()
|
|||
ResetBlitz();
|
||||
|
||||
for(int i = 0; i < arg.GetCount(); i++) {
|
||||
if(arg[i] == "-uninstall") {
|
||||
/* if(arg[i] == "-uninstall") {
|
||||
Uninstall();
|
||||
return;
|
||||
}
|
||||
if(!firstinstall && arg[i] == "-install" && !Install()) return;
|
||||
|
||||
*/
|
||||
#ifdef PLATFORM_WIN32
|
||||
if(arg[i] == "!") {
|
||||
String cmdline;
|
||||
|
|
@ -832,7 +832,7 @@ void AppMain___()
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
#ifdef _DEBUG0
|
||||
#ifdef PLATFORM_WIN32
|
||||
InstantSetup();
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue