How to create shortcut in Pnp installing by adding section in inf for xp & win 11 os

向葵 张 0 Reputation points
2023-07-04T10:06:04.8233333+00:00

I want to create exe's shrotcut by adding section of section. I create a dll to create shortcut. The shortcut creates successfully by using Runonce & Coinstaller sections, but the whck failed. The Runonce is used only in windows XP and the Coinstaller can't support Windows 11. Is there any correct method to run dlls in all Windows’ version and pass whck?

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,404 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 2023-09-20T07:52:47.5033333+00:00

    Hello

    Creating a shortcut in PnP installing by adding a section in the INF file for Windows XP and Windows 11 can be a bit tricky due to the differences in these operating systems.

    The RunOnce method is used only in Windows XP and the Coinstaller method doesn’t support Windows 11. This might be the reason why your WHCK (Windows Hardware Certification Kit) test failed.

    To create a shortcut in all versions of Windows and pass the WHCK, you might need to use a different approach. Here are some general steps you could consider:

    Review Hardware Requirements: Building a great Windows device starts with understanding the hardware requirements.

    Register on Hardware Dashboard: Before you start testing for Windows compatibility, you should register with the hardware dashboard.

    Install the Windows Hardware Lab Kit: Get ready to test your Windows hardware by installing the Windows Hardware Lab Kit (HLK) and configuring your test environment.

    Submit Results: After testing your hardware and packaging the results with the HLK, you can submit the results to the hardware dashboard to qualify for the Windows Hardware Compatibility Program.

    Please note that these are general steps and might not directly solve your problem. The exact method can vary depending on the specifics of your application and system configuration.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.