Created
January 28, 2017 09:01
-
-
Save anuraj/dbe5ff308ba1a8443d44d0cdcaba657f to your computer and use it in GitHub Desktop.
Innosetup script file for dotnet core windows service installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Script generated by the Inno Setup Script Wizard. | |
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! | |
#define MyAppName "dotnet core windows service" | |
#define MyAppVersion "1.5" | |
#define MyAppPublisher "dotnetthoughts" | |
#define MyAppURL "http://dotnetthoughts.net/" | |
[Setup] | |
; NOTE: The value of AppId uniquely identifies this application. | |
; Do not use the same AppId value in installers for other applications. | |
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) | |
AppId={{E816A2B2-F03B-4810-A56F-130D51BCA509} | |
AppName={#MyAppName} | |
AppVersion={#MyAppVersion} | |
;AppVerName={#MyAppName} {#MyAppVersion} | |
AppPublisher={#MyAppPublisher} | |
AppPublisherURL={#MyAppURL} | |
AppSupportURL={#MyAppURL} | |
AppUpdatesURL={#MyAppURL} | |
DefaultDirName={pf}\{#MyAppName} | |
DefaultGroupName={#MyAppName} | |
DisableProgramGroupPage=yes | |
OutputDir=C:\Users\Anuraj\Desktop\winoutput | |
OutputBaseFilename=setup | |
Compression=lzma | |
SolidCompression=yes | |
[Languages] | |
Name: "english"; MessagesFile: "compiler:Default.isl" | |
[Files] | |
Source: "C:\Anuraj\ASPNET\WinServiceDemo\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs | |
; NOTE: Don't use "Flags: ignoreversion" on any shared system files | |
[Run] | |
Filename: {sys}\sc.exe; Parameters: "create dotnetcorewinservice start= auto binPath= ""{app}\bin\Release\net451\win7-x64\WinServiceDemo.exe""" ; Flags: runhidden | |
[UninstallRun] | |
Filename: {sys}\sc.exe; Parameters: "stop dotnetcorewinservice" ; Flags: runhidden | |
Filename: {sys}\sc.exe; Parameters: "delete dotnetcorewinservice" ; Flags: runhidden |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment