Forum: PC-Programmierung WIX Installer .NET 6.0


von Eric (Gast)


Lesenswert?

Hallo,

ich habe meine Anwendung von .net 4.5 auf .net 6.0 geupgradet.
Nun wurde bei .net 6.0 vieles anscheinend ausgelagert sodass ich nun 
eine Menge zusätzlicher DLL'S in meinem Output Folder habe.
Damit mein Programm nun läuft muss ich im WIX Installer die DLL'S von 
diversen Packages manuell mit hinzufügen. Das kommt mir aber etwas 
umständlich vor!

Nun gibt es vielleicht eine Möglichkeit das auch einfacher zu gestalten 
?
Hatte zufällig auch schon jemand so ein Problem ?

Grüße,

Eric

von Eric (Gast)


Lesenswert?

Nun ich habe jetzt die DLL' 50 Stück an der Zahl erstmal händisch 
hinzugefügt aber schön ist das irgendwie nicht, da es sich um Sachen wie 
System.IO.Port und sowas handelt. Hätte ja gedacht wenn man die Runtime 
6.0.2 installiert braucht man nicht noch zusätzlich eine weitere runtime 
im Output Folder. Das kommt mir irgendwie seltsam vor. Aber ohne diese 
fünf DLL'S im Outputfolder funktioniert das Programm auch nicht mehr. 
Nun ja mir fehlt an dieser Stelle wohl etwas Expertise.

Grüße,

Eric

von Matthias S. (matthias_s)


Angehängte Dateien:

Lesenswert?

Im WiX-Toolkit ist das Programm "Heat" dabei. Das kannst du auf einen 
Output-Folder loslassen, und er generiert dir dann Components dafür. 
Dann musst du es zumindest schonmal nicht mehr selber machen.

https://wixtoolset.org/documentation/manual/v3/overview/heat.html

Ansonsten kannst du .NET Bootstrapper-Pakete für die passende Version in 
WiX referenzieren. Dann musst du dich nicht mehr mit Assemblies 
rumschlagen, die sich bei jedem Microsoft Update verändern.

von Bradley N. (bradley_n)


Lesenswert?

The core of WiX is a set of build tools that build Windows Installer 
packages using the same build concepts as the rest of your product: 
source code is compiled and then linked to create executables; in this 
case .exe setup bundles, .msi installation packages, .msm merge modules, 
and .msp patches. The WiX command-line build tools work with any 
automated build system. Also, MSBuild is supported from the command 
line, Visual Studio, and Team Build.

WiX includes several extensions that offer functionality beyond that of 
Windows Installer. For example, WiX can install IIS web sites, create 
SQL Server databases, and register exceptions in the Windows Firewall, 
among others.

With Burn, the WiX bootstrapper, you can create setup bundles that 
install prerequisites like the .NET Framework and other runtimes along 
with your own product. Burn lets you download packages or combine them 
into a single downloadable .exe.

The WiX SDK includes managed and native libraries that make it easier to 
write code that works with Windows Installer, including custom actions 
in both C# and C++. you can read it all here 
https://sirinsoftware.com/industries/consumer-electronics-solutions/

von Eric (Gast)


Lesenswert?

Ja danke,

das werde ich mal ausprobieren.

Grüße

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.