You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using System.Runtime.CompilerServices;
using WixSharp;
using WixToolset.Dtf.WindowsInstaller;
using File = WixSharp.File;
[assembly: InternalsVisibleTo(assemblyName: "Setup1.aot")] // assembly name + '.aot suffix
var project =
new ManagedProject(
"My Product",
new Dir(@"%ProgramFiles%\My Company\My Product",
new File(
"program.cs",
new FileShortcut("program cs", @"%Desktop%\My Product")
)
),
new Property("PropName", "<your value>")
);
// project.AddUIProject("Setup1.UI"); // name of the 'Custom UI Library' project in the solution
project.Load += (e) =>
{
Native.MessageBox("OnLoad", "WixSharp - .NET8");
e.Result = ActionResult.Failure;
};
project.BuildMsi();
...\Setup1\My Product.wxs(12): error WIX0094: The identifier 'Directory:DesktopFolder.My20Product' could not be found. Ensure you have typed the reference correctly and that all the necessary inputs are provided to the linker.
The text was updated successfully, but these errors were encountered:
Hiho, i foudn https://stackoverflow.com/questions/77216955/wix-v4-installer-how-to-create-shortcuts on Stackoverflow. It seems that there is difference between your implementaion and standard wix v4 Version. Maybe this helps. Just examindate your output of wxs File, where file shortcut is, I am sure this lead to this error.
Best regards, Torchok.
...\Setup1\My Product.wxs(12): error WIX0094: The identifier 'Directory:DesktopFolder.My20Product' could not be found. Ensure you have typed the reference correctly and that all the necessary inputs are provided to the linker.
The text was updated successfully, but these errors were encountered: