prerequisites set but install insists they dont exist - Advanced Installer Community
johnm0101
Posts: 5
Joined: Thu Oct 10, 2024 11:55 am

prerequisites set but install insists they dont exist

I am a newbie on this but it looks like a great tool I could use.
I'm developing dotnet maui in visual studio 2022 and using the advanced extension trial
I have a maui dotnet app. I have a windows desktop version and wish to create a simple msi - it is not a commercial app and the user base is small so adhoc distrib with msi seems the way to go . I ve got as far as creating msi. tried to install on a win 10 machine but a) it doesnt create a shortcut in apps/programs -
b) you can find the app installed where you'd expect it but it gives message '
'you must install dotnet runtime ' and refers to apphost vers 8.0.8.
So I manually downloaded 8.0.8 and installed - still get same error message when trying to launch app.
FWIW ive set prerequisites in the 'setup' projects property page
in this list the only relevant option is dotnet runtime 8.0.8 - (this IS installed on my win10 machine) the option of the latest 8.0.10 is not in this list.
Also it seems this prerequisite is working because if I delete the app and reinstall the reinstall seems to do something about install dotnet runtime before it tries to install the app. but once again when one comes to launching the app it reports that 8.0.8 is not available - all works fine on win 11 as far as I can see but then thats my development machine and has every option
Clearly Im not doing something right - I cant figure how to make win10 create a shortcut (which is a minor secondary problem to this 'no dotnet 8.0.8 installed) and the helpfiles refer to popup configuration screens which I simply cannot find in visual studio 2022 (i.e the popup to change the manufacurer or app name)
Any help gratefully appreciated
Catalin
Posts: 7848
Joined: Wed Jun 13, 2018 7:49 am

Re: prerequisites set but install insists they dont exist

Hello John and welcome to our forums,
b) you can find the app installed where you'd expect it but it gives message '
'you must install dotnet runtime ' and refers to apphost vers 8.0.8.
So I manually downloaded 8.0.8 and installed - still get same error message when trying to launch app.
Here, please make sure you have installed the correct version of .NET.

What I mean is getting the bitness according to your application (if your app is 64 bit, get the 64-bit version of the prerequisite, etc.).
in this list the only relevant option is dotnet runtime 8.0.8 - (this IS installed on my win10 machine) the option of the latest 8.0.10 is not in this list.
I will discuss with our dev team so we can add the newer version to our predefined list - thank you for bringing this to our attention!
all works fine on win 11 as far as I can see but then thats my development machine and has every option
Perhaps there is something more that your app is missing, besides the .NET?

Perhaps if we check the Event Viewer, we can get some more details about your app (e.g. if it's missing something else).

Could you please check that and let me know if it helps?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
johnm0101
Posts: 5
Joined: Thu Oct 10, 2024 11:55 am

Re: prerequisites set but install insists they dont exist

thanks for all that help - as Im a retired part time probono developer I may not be able to get back to you for a few days - pleasebear with me
johnm0101
Posts: 5
Joined: Thu Oct 10, 2024 11:55 am

Re: prerequisites set but install insists they dont exist

FWiW I have been careful to focus only on the 64bit not x86 both in original project compilation, the setup install and the dotnet runtimes.
Can you assist a little bit more on how I might use the event viewer?
Catalin
Posts: 7848
Joined: Wed Jun 13, 2018 7:49 am

Re: prerequisites set but install insists they dont exist

Hello John,

No worries about the delayed reply. :)

We can use the event viewer as it follows:

- install the app

- launch the app --> we get the error

- press windows key on your keyboard and type "Event Viewer"

- go to "Windows Logs" --> "Application". Here, try to filter the errors and see which one comes from your app - perhaps we might be able to get some more information on this from these logs.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
johnm0101
Posts: 5
Joined: Thu Oct 10, 2024 11:55 am

Re: prerequisites set but install insists they dont exist

thanks Catalin

with respect I dont think wading through the windows log files is going to help much - its not really that kind of error
Ive made a screen recording which may explain more - sorry no commentary but
1) I open properties on advanced installer project - to show I have selected dontnet runtime 8.0.8 - in prerequisites

3) I go to the installed folder - in this case \program files\dellinger\setup5
4) this shows that the full build folder created by VS2022 has been correctly installed
5) I select the .exe - Manifest6.exe and run (incidentally the install does not create a shortcut)
6) it gives error dotnet runtime is not installed
7) go to downloads - select 8.0.8 install - as you can see it is already installed - so - select 'repair'
8) go back to \program files\dellinger\setup5 select manifest6.exe - hey presto same error -
Image

I'd be grateful if you could suggest any changes to the advanced installer properties which might avoid this erroneous message
FWIW dotnet runtime and dotnet desktop runtime are both installed in version 8.040 8.0.8 8.0.10 all in 64 version as the app is
Also is there anyway of forcing the install to install in a folder with a meaningful name lik eManifest6 (name of app) rather than the default project 'setup5' - your documentation suggest there is a rightclick context menu - as far as I can see this does not exist in the VS extension

Tia
John MUrray

PS sorry cant see a way of attaching the screenmovie as it is bigger than 1mb file - can I PM you it?
johnm0101
Posts: 5
Joined: Thu Oct 10, 2024 11:55 am

Re: prerequisites set but install insists they dont exist

Hi
further to my problem about the persistent message saying dotnet runtime is not installed - I created a series of screen shots to better explain it
I hope someone can shed som elight on what I might do
Attachments
advanced installer problem.zip
(689.2 KiB) Downloaded 199 times
Catalin
Posts: 7848
Joined: Wed Jun 13, 2018 7:49 am

Re: prerequisites set but install insists they dont exist

Hello John,

First of all, thank you for providing the screenshots, I think I better understand what's going on here now.

So, from what I can see, you are not really using our support for "prerequisites", but rather some support from Visual Studio.

From your screenshots, it looks like you are using this:

Install prerequisites with a ClickOnce application

What I would suggest is the following (to avoid as many confusions as possible):

1. build your application

2. open Advanced Installer on your machine

3. create a project (e.g. Professional or Enterprise, depending on your needs)

4. in the "Files and Folders" page, add your project files (e.g. the EXE and its' dependencies)

5. in the "Prerequisites" page, add from the predefined list of prerequisites whatever prerequisite it is that you need

6. build the project and install the resulted setup

Could you please follow these steps and let me know how it goes?

If that is still of no help, please forward me, by email at support at advancedinstaller dot com, the following resources:

- a copy of your AIP file

- a download link for the setup (MSI or EXE)

so I can run some tests and further investigate this on our end.

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

Return to “Common Problems”