dkuerten
Posts: 5
Joined: Tue Jan 14, 2025 1:56 pm

Changes in Publish output not detected

I have an existing .Net-WPF project where I use a Folder Publish Profile to provide the file to the Advanced Installer project.

For the initial setup I used the "Add Project Output" option of the Advanced Installer Extension for VS2022 which successfully detected the required files.

Recently I added another subproject with a reference to the main project resulting in a new DLL file being required. The problem is, that even though the installer builds without issues the new file is not detected resulting in the application being unable to start. I already checked the output of the Publish step in Visual Studio and the DLL is definely there.

I already tried to remove the project output and adding it back again via the Extension. This resulted in all detected files to be removed. After adding the output back and rebuilding the installer zero files were detected, even the ones present before were gone.

For now I managed to solve the immediate issue by adding the missing file manually, but that may not be a good long term solution.
I currently use AIP version 22.5 with the AIP Visual Studio Extension version 22.8. I would use the newest version but it is currently incompatible with the VS Extension and causes it to crash when opening a project.
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Changes in Publish output not detected

Hello,

I can't say for sure why this is happening, as I wasn't able to reproduce the issue.

However, a possible solution for this would be to use our predefined support for "synchronized folders".

Basically you can synchronize the "Application Folder" from your Advanced Installer project with the folder on the disk where your files reside.

This way, everytime you build the VS solution and then open the Advanced Installer project, the files will be synched (e.g. newer version of your EXE will automatically be added, or if some other files are generated by your solution).

Everytime you open the Advanced Installer project, the folder on the disk will be checked.

This will ensure that you will always have all the needed files.

Would this help?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dkuerten
Posts: 5
Joined: Tue Jan 14, 2025 1:56 pm

Re: Changes in Publish output not detected

Sorry for the late reply, the update notification seems to have vanished.

Thanks for suggesting this solution, I did not know this feature existed. I successfully added a folder sync and it seems to work for now.
Side Note: I had to remove the Publish Output before or otherwise I would get a lot of weird errors when adding the sync.

Thank you for helping.
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Changes in Publish output not detected

You are always welcome, glad I was able to assist! :D

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”