All Downloads are FREE. Search and download functionalities are using the official Maven repository.

windows.startup.vbs.vtl Maven / Gradle / Ivy

Go to download

Hybrid Maven/Gradle plugin to package Java applications as native Windows, Mac OS X or GNU/Linux executables and create installers for them

The newest version!
' Windows startup script generated by JavaPackager plugin

' Runs an executable file (exe, bat, cmd, ...)
Function Run(file)
    If  FileExists(file) Then
        Set WshShell = CreateObject("WScript.Shell") 
        WshShell.Run chr(34) & file & Chr(34), 0
        Set WshShell = Nothing
    End If
End Function

' Checks if a file exists
Function FileExists(FilePath)
    Set fso = CreateObject("Scripting.FileSystemObject")
    If fso.FileExists(FilePath) Then
        FileExists=CBool(1)
    Else
        FileExists=CBool(0)
    End If
End Function

#if ($info.bootstrapFile)
' Runs bootstrap script if exists
Run "scripts\\${info.bootstrapFile.name}"
#end

' Runs app executable
Run "${info.executable.name}"




© 2015 - 2024 Weber Informatics LLC | Privacy Policy