问题
WPF interface and C ++ algorithm, Deploying with C++ DLL, to another computer for installation
I tried "Generate" menu -"Publish" to generate exe file. It is OK to install it on the local computer, the problem : install it on another computers. "Missing application" error appear. I have found many ways:
The DLL and config files are added to the program, but the missing files are still not resolved.
At the same time when I generated the installation package, I also generated a manifest. I tried to copy both the exe and the generated manifest to another computer. The error changed to the following.
The following is a summary of the errors. The details of these errors are listed at the back of the log.
- Activating C: \ Users \ FileStorage \ File \ 2020-02 \ Rimage.application caused an exception. The following failure messages were detected:
- Download file: /// C: / Users / 40276 / OneDrive / FileStorage / File / 2020-02 / Application Files / Rimage_1_0_0_10 / Rimage.exe.manifest was unsuccessful.
- Could not find part of the path "C: \ Users \ 40276 \ OneDrive \ FileStorage \ File \ 2020-02 \ Application Files \ Rimage_1_0_0_10 \ Rimage.exe.manifest".
- I tried Visual Studio "Window installer project", but I also have questions, a. The steps are a bit complicated. Can multiple "main outputs" work? You can add necessary files such as DLL in Application Folder, but some files are still missing. b\When I switch to a computer that is not connected to the Internet, I get the error "Missing opencv.Mat file". The project references “ livechart ”draw hist, "opencv"cutout, and pseudo color map. How can I publish it quickly and easily?
- Is there a better way to publish? and then install it on a different computer each time, such as " missing DLL or manifest " errors. Do I need to copy two files (exe \ manifest) to other computers for installation each time?
来源:https://stackoverflow.com/questions/61832020/wpf-deploying-with-c-dll