Skip to content

PowerShell scripts to publish Inno Setup installers

Notifications You must be signed in to change notification settings

Timthreetwelve/PublishInnoSetup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

PowerShell scripts that I use to publish Inno Setup installers

The PowerShell script is executed in the .csproj file only during Publish. See the Exec statement near the end.

  <!-- Publish to Inno Setup installer-->
    <Target Name="CompileSetup" AfterTargets="PublishZip">
      <PropertyGroup>
        <PowerShellScript>-File "[your folder]\PublishInnoSetup\PubSetupEx.ps1"</PowerShellScript>
        <ScriptName>-issScript "$(ProjectDir)Inno_Setup\[Inno Setup script file]"</ScriptName>
        <Name>-name "[your application name]"</Name>
        <Version>-version $(AssemblyVersion)</Version>
      </PropertyGroup>

        <!-- This is the framework dependent version -->
        <PropertyGroup Condition="'$(PublishDir.Contains(`Framework_Dependent`))'">
            <PubType>-publishType "x64x86"</PubType>
        </PropertyGroup>

        <!-- This is the x64 self contained version-->
        <PropertyGroup Condition="'$(PublishDir.Contains(`Self_Contained_x64`))'">
            <PubType>-publishType SC_x64</PubType>
        </PropertyGroup>

        <!-- This is the x86 self contained version-->
        <PropertyGroup Condition="'$(PublishDir.Contains(`Self_Contained_x86`))'">
            <PubType>-publishType SC_x86</PubType>
        </PropertyGroup>

      <!-- Execute the PowerShell script -->
      <Exec Command="pwsh -NoProfile $(PowerShellScript) $(ScriptName) $(PublishDir) $(PubType) $(version) $(Name)" />
    </Target>

About

PowerShell scripts to publish Inno Setup installers

Resources

Stars

Watchers

Forks