To test with Vista I've put a link to the executable here http://www.dotysoftware.com/topdog.exe
Would appreicate knowing the results?
Would someone look over the .xml code to see if it is correct?
All other programs (that do not need more rights) do not need a manifest, correct?
Does TopDog create C:\Program Files\My Test Folder using Vista 32-bit and Vista 64-bit?
What other manifests do we need to distribute Vista programs (if not using an installer?)
Getting a Vista box tomorrow.
'Save as TopDog.Bas
'Save as Admin.Xml
'Save as Admin.Rc
RC.EXE Admin.Rc ----> creates Admin.Res
PBRES Admin.Res ----> creates Admin.Pbr
uiAccess information
Would appreicate knowing the results?
Would someone look over the .xml code to see if it is correct?
All other programs (that do not need more rights) do not need a manifest, correct?
Does TopDog create C:\Program Files\My Test Folder using Vista 32-bit and Vista 64-bit?
What other manifests do we need to distribute Vista programs (if not using an installer?)
Getting a Vista box tomorrow.
'Save as TopDog.Bas
Code:
'TopDog.Bas #COMPILE EXE #DIM ALL #RESOURCE "admin.pbr" 'uiAccess = false or you need to pay Microsoft can only send messages to equal or lower levels #COMPILE EXE #DIM ALL #RESOURCE "admin.pbr" FUNCTION PBMAIN AS LONG LOCAL sFolder AS STRING sFolder = "c:\Program Files\My Test Folder" ? "TopDog with admin privileges" MKDIR sFolder IF ERR = 0 THEN ? "Created " + sFolder + " will now remove." RMDIR sFolder IF ERR = 0 THEN ? "Removed " + sFolder ELSE ? "Error" + STR$(ERRCLEAR) + " of folder " + sFolder END IF ELSE ? "Unable to create " + sFolder + " error" + STR$(ERRCLEAR) END IF END FUNCTION
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" NAME = "TopDog" TYPE = "win32" /> <description>I am the top dog</description> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedPrivileges> <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> </requestedPrivileges> </security> </trustInfo> </assembly>
Code:
1 24 admin.xml
RC.EXE Admin.Rc ----> creates Admin.Res
PBRES Admin.Res ----> creates Admin.Pbr
uiAccess information
Comment