Skip to content

Commit 0125563

Browse files
BetaLeafBetaLeaf
BetaLeaf
authored and
BetaLeaf
committed
Update
Script now opens the Project Folder's App\APPNAME folder after asking for the APPNAME. Script now properly displays an error message if PortableApps.comLauncher fails to create a launcher and opens the log file.
1 parent cdce9b1 commit 0125563

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Binary file not shown.

Source/Other/Source/PortableApps App Creation Wizard.au3

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Func CreateApp()
5757
DirCreate($path & $appnameportable & "\Other\Help\Images")
5858
DirCreate($path & $appnameportable & "\Other\Source\")
5959
MsgBox(0, $wintitle, "Project Folders Created. Please move the PortableApp into the Project Folder at " & @CRLF & $path & $appnameportable & "\App\" & $appname & @CRLF & @CRLF & "An icon will be extracted automatically if the ProgramExecutable exists upon submission. Otherwise, you will also want to make/extract the icon at this time. ")
60-
60+
ShellExecute($path & $appnameportable & "\App\" & $appname,"","","open")
6161

6262
;Step 2. Collect appinfo from user.
6363
#Region ### START Koda GUI section ### Form=D:\OneDrive\Documents\PortableApp_Creator.kxf
@@ -265,7 +265,12 @@ Func CreateApp()
265265
GetIcon()
266266
ShellExecuteWait($PortableAppsLauncherCreatorPath, $path & $appnameportable)
267267
Global $runpath = IniRead($appinfopath, "Control", "Start", "")
268-
If FileExists($path & $appnameportable & "\" & $runpath) Then MsgBox(0, $wintitle, "Success.")
268+
If FileExists($path & $appnameportable & "\" & $runpath) Then
269+
MsgBox(0, $wintitle, "Success.")
270+
Else
271+
MsgBox(0, $wintitle, "Something went wrong. Click OK to check the log.")
272+
ShellExecute($path & "PortableApps.comLauncher\Data\PortableApps.comLauncherGeneratorLog.txt")
273+
EndIf
269274
EndFunc ;==>CreateApp
270275
Func GetIcon()
271276
ShellExecuteWait(@ScriptDir & "\iconsext.exe", '/save "' & $path & $appnameportable & '\App\' & GUICtrlRead($ProgramExecutableInput) & '" "' & $path & $appnameportable & '\App\AppInfo" -icons -asico')

0 commit comments

Comments
 (0)