Upgrade prerequisites - failed Incorrect function

Bug reports.
CWhiting
Posts: 26
Joined: Thu Mar 08, 2018 9:32 pm

Upgrade prerequisites - failed Incorrect function

Post by CWhiting » Wed Feb 15, 2023 5:44 pm

I was upgrading from 10.2.2 to 10.5.2. The Ranorex Studio install of the prerequisites failed with an error of 0x80070001 - Incorrect function.

I was still able to install Ranorex but I am not sure if all the prerequisites have been installed and the log file is unclear as to when the error occurred and what it was trying to do, let alone what I am supposed to do to fix it.
You do not have the required permissions to view the files attached to this post.

dhale
Posts: 84
Joined: Thu Feb 27, 2014 7:33 pm

Re: Upgrade prerequisites - failed Incorrect function

Post by dhale » Thu Feb 16, 2023 4:45 pm

I would do the following:
Uninstall Ranorex Studio.
Reboot
Reinstall Ranorex Studio.
If issues persist, contact Support -
You had two errors, one was that a system restore point could not be created.
Your other error was as follows, and is what Support will probably want to know, but send them the entire log file just to be safe:

[26C4:18D4][2023-02-15T09:10:47]i301: Applying execute package: VsBuildToolsWeb, action: Install, path: C:\ProgramData\Package Cache\2C2B3A8232C54808513A27B3179DF3BB364E0D24\vs_BuildTools.exe, arguments: '"C:\ProgramData\Package Cache\2C2B3A8232C54808513A27B3179DF3BB364E0D24\vs_BuildTools.exe" --nocache --wait --noUpdateInstaller --add Microsoft.Net.Component.4.8.TargetingPack --includeRecommended --includeOptional --quiet --norestart'
[26C4:18D4][2023-02-15T09:11:25]e000: Error 0x80070001: Process returned error: 0x1
[26C4:18D4][2023-02-15T09:11:25]e000: Error 0x80070001: Failed to execute EXE package.
[1EC4:08AC][2023-02-15T09:11:25]e000: Error 0x80070001: Failed to configure per-machine EXE package.
[1EC4:08AC][2023-02-15T09:11:25]i319: Applied execute package: VsBuildToolsWeb, result: 0x80070001, restart: None
[1EC4:08AC][2023-02-15T09:11:25]e000: Error 0x80070001: Failed to execute EXE package.

fhtsang
Posts: 1
Joined: Tue Feb 28, 2023 10:53 pm

Re: Upgrade prerequisites - failed Incorrect function

Post by fhtsang » Wed Mar 01, 2023 3:31 pm

I would install Visual Studios 2019 before trying to install 10.5.2. This helped me.


CWhiting
Posts: 26
Joined: Thu Mar 08, 2018 9:32 pm

Re: Upgrade prerequisites - failed Incorrect function

Post by CWhiting » Thu Mar 02, 2023 1:28 pm

I uninstalled Ranorex then re-installed with no issues.

The name is Oz
Posts: 2
Joined: Wed Jun 28, 2017 7:53 am

Re: Upgrade prerequisites - failed Incorrect function

Post by The name is Oz » Wed Mar 22, 2023 8:53 am

I ran into the exact same error during a reinstall of 10.5.2. I uninstalled 10.5.2 after the upgrade from 10.2.2 since Ranorex Studio refused to open any RXSLN file after the upgrade. To be safe I thought to reinstall the prerqequisities and ran into the same issues as the OP.

Edit: Never mind. Installing the latest VS2019 BuildTools from https://learn.microsoft.com/en-us/visua ... 19/history solved the issue. Apparently an issue in the Ranorex installer when detecting missing packages.