![]() |
#1 |
Junior Member
Join Date: Jan 2008
Posts: 21
|
Help with system plugin
I want to get the list of decoder GUIDs supported by the graphics hardware but I'm really bad with the system plugin.So can someone help me to get it by using the following function with the system plugin?
https://docs.microsoft.com/en-us/win...om=MSDN#syntax code: |
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 923
|
You could write this into a plugin instead, it looks too long and messy to write this in script system plugin syntax. All it has to return is either 'error', or 'ok' then the number of guids and then just 'pop' each guid off the stack.
Anders might be able to do some magic with the system plugin though. "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
![]() |
![]() |
![]() |
#3 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
If all you need is this exact code then you can do it with the System plug-in. I'll whip up some code later.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Jan 2008
Posts: 21
|
Thanks, I'll wait it out.
|
![]() |
![]() |
![]() |
#5 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
Your code is actually incomplete, you failed to show how you create the device.
This should be close enough PHP Code:
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#6 |
Junior Member
Join Date: Jan 2008
Posts: 21
|
Thank you, you're excellent!
|
![]() |
![]() |
![]() |
#7 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
You should probably modify my code a bit to suit your needs. I'm asking for hardware here but depending on what you need, you might be able to use the WARP software renderer.
Also, it might fail for silent installers because it asks for windowed mode so you should disable silent installer or create a fake window or ask for full-screen. IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|