pforsbom
Posts: 23
Joined: Mon Apr 01, 2019 11:03 am

Open AI from VS changes the Build configuration

Thu Jan 05, 2023 10:09 am

Hi
I am using the Advanced Installer Extension in Visual Studio.
When I right click an AI project in Visual Studio and select "Edit in Advanced Installer" the build configuration is changed to include the Advanced Installer project on all build configurations.
How can I disable this behaviour?

regards
Peter

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Open AI from VS changes the Build configuration

Thu Jan 05, 2023 4:43 pm

Hello Peter,

I'm afraid I do not fully understand your issue here.

If possible, do you think you can exemplify this with some screenshots so I can better understand it?

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

pforsbom
Posts: 23
Joined: Mon Apr 01, 2019 11:03 am

Re: Open AI from VS changes the Build configuration

Fri Jan 06, 2023 10:15 am

Hi
Steps to reproduce:
1. Have Visual Studio 2022 with Advanced Installer plugin is installed
2. Create a Solution that has Advanced Installer project included.
3. Right click on the Solution-Properties-Configuration Properties-Configuration
4. Uncheck the Build option for the Advanced Installer project. Do this for both Debug and Release configuration.
5. Save and Close the Property Page
6. Right Click on the Advanced Installer project *.aip file and select "Edit in Advanced Installer"
7. Close Advanced Installer again. No edits necessary
8. Open the Solution Properties again and you will see that the Build option is enabled again for all build configurations.
I suspect that it is the Advanced Installer plugin that is doing this.


Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Open AI from VS changes the Build configuration

Tue Jan 10, 2023 3:15 pm

Hello Peter,

First of all, thank you very much for the detailed step-by-step and for the screenshots.

I'm afraid this might be a setting in Visual Studio rather than it being related to Advanced Installer.

I have initially tested this with VS2019 and Advanced Installer (latest version) and I was unable to reproduce it.

I have then installed on a VM VS2022 with, once again, the latest version of Advanced Installer. I re-run the test and once again I was not able to reproduce it.

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

pforsbom
Posts: 23
Joined: Mon Apr 01, 2019 11:03 am

Re: Open AI from VS changes the Build configuration

Tue Jan 31, 2023 7:44 pm

Hi
Try restarting Visual Studio 2022 after you have created the project and then try to reproduce.

Another reason I suspect the AI addon is that I have a lot of other projects that I have unchecked build option, but these projects are unchanged.

Peter

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Open AI from VS changes the Build configuration

Thu Feb 02, 2023 3:54 pm

Hello Peter,

Thank you for your followup on this!

I did as you advised and I was indeed able to reproduce this now, using VS2022.

I have forwarded this to our dev team and hopefully it will be fixed in a future version of Advanced Installer.

Thank you for bringing this to our attention!

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

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Open AI from VS changes the Build configuration

Fri Feb 03, 2023 1:09 pm

Hello Peter,

I have further discussed with our developer and we will try to fix it.

In the meantime, to work this around, you can unload Advanced Installer project from your solution before restarting VS and this should no longer occur.

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

tudor_turcu
Posts: 6
Joined: Tue Apr 11, 2023 1:09 pm

Re: Open AI from VS changes the Build configuration

Wed Jul 05, 2023 1:29 pm

We are encountering the same issue for quite some time - somehow the .aiproj gets re-added automatically in the build configuration, even if I un-select the .aiproj explicitly (VS2022, Advanced Installed v20.5-20.6)

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Open AI from VS changes the Build configuration

Wed Jul 05, 2023 4:35 pm

Hello Tudor,

This seems to have been fixed quite some time ago, although I somehow forgot to update this thread.

Could you please update your extension to the latest and retry this?

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

tudor_turcu
Posts: 6
Joined: Tue Apr 11, 2023 1:09 pm

Re: Open AI from VS changes the Build configuration

Thu Jul 06, 2023 9:30 am

I am using the Advanced Installer extension for Visual Studio 2022, version 20.6, and maybe some colleagues v. 20.5. Was this issue fixed recently?

tudor_turcu
Posts: 6
Joined: Tue Apr 11, 2023 1:09 pm

Re: Open AI from VS changes the Build configuration

Thu Jul 06, 2023 10:11 am

Some steps to reproduce:
- open the SLN in VS2022 (17.6.3 Enterprise edition),
- close all opened windows/tabs
- make sure the two .aiprojs are not selected in the build configuration:
Screenshot 2023-07-06 115716.png
Screenshot 2023-07-06 115716.png (8.36KiB)Viewed 8668 times
- save the SLN changes
- close and re-open Visual Studio
- verify that the .aiprojs are not selected - they are not
- open one .aip in Visual Studio by double-clicking it in Solution Explorer
- the .aiproj is selected again:
Screenshot 2023-07-06 120556.png
Screenshot 2023-07-06 120556.png (9.73KiB)Viewed 8668 times

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Open AI from VS changes the Build configuration

Mon Jul 10, 2023 3:30 pm

Hello Tudor,

Thank you for providing the detailed step-by-step test-case!

Please give me some more time to test and investigate this and once I'll reach a conclusive answer I will update this thread.

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

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Open AI from VS changes the Build configuration

Tue Jul 11, 2023 12:25 pm

Hello Tudor,

This seems to have been fixed in version 20.8 of the Extension:

Advanced Installer for Visual Studio 2022

Could you please test with this and let me know if it still reproduces?

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

tudor_turcu
Posts: 6
Joined: Tue Apr 11, 2023 1:09 pm

Re: Open AI from VS changes the Build configuration

Tue Jul 11, 2023 12:32 pm

Thanks! I will try it.

Return to “Common Problems”