Topics Topics Help/Instructions Help Edit Profile Profile Member List Register  
Search Last 1 | 3 | 7 Days Search Search Tree View Tree View  
Randem Systems Support Board * Visual Basic 6 * Marking Your Exe For Request To Run As Administrator In Vista < Previous Next >

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

cymeonx
New member
Username: cymeonx

Post Number: 5
Registered: 05-2011

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, May 20, 2011 - 11:05 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

I kind of thought that but I am not so very knowledgeable about these things. Have a wonderful weekend and once again many thanks for your time.

I think I have tried everything but I will spend a bit more time playing with all the options in case I have made a mistake. I will definitely let you know if I get it to work.

All best :-)
Top of pagePrevious messageNext messageBottom of page Link to this message

randem
Moderator
Username: randem

Post Number: 1912
Registered: 04-2004

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, May 20, 2011 - 10:47 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Well, if the main exe has administrative privileges and then executes the other exe's then they should run with elevated privileges depending on how you run them.
Top of pagePrevious messageNext messageBottom of page Link to this message

cymeonx
New member
Username: cymeonx

Post Number: 4
Registered: 05-2011

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, May 20, 2011 - 10:44 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Thanks. At least now I understand why it generally works for most people. The intall exe installs several executables so maybe I am asking for too much from your idea . Very many thanks for taking the trouble to help. It is much appreciated.
Top of pagePrevious messageNext messageBottom of page Link to this message

randem
Moderator
Username: randem

Post Number: 1911
Registered: 04-2004

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, May 20, 2011 - 10:19 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Actually the resource editor is supposed to recalculate the CRC...
Top of pagePrevious messageNext messageBottom of page Link to this message

cymeonx
New member
Username: cymeonx

Post Number: 3
Registered: 05-2011

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, May 20, 2011 - 10:13 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Thanks. Yes - I actually tried this way already in my search for a way to do this and it did seem to work. Is there no hope for getting your modification to work as it is obviously a neater solution?
Top of pagePrevious messageNext messageBottom of page Link to this message

randem
Moderator
Username: randem

Post Number: 1909
Registered: 04-2004

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, May 20, 2011 - 10:06 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

If that way does not work well for you you can use a manifest file to request Administrative privileges for your exe. Copy the following lines to a text file but the name of yourexename.exe.manifest Change the references in the file from InnoScript.exe to your exename. Thiis file needs to be in the same folder as the exe to work.


<?xml>
<assembly>
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86"
name="InnoScript.exe"
type="win32"/>
<description>elevate execution level</description>
<trustinfo>
<security>
<requestedprivileges>
<requestedexecutionlevel>
</requestedprivileges>
</security>
</trustinfo>

<description>VB code converter.</description>
<dependency>
<dependentassembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentassembly>
</dependency>
</assembly>

application/zipManifest File
Manifest.zip (0.6 k)
Top of pagePrevious messageNext messageBottom of page Link to this message

cymeonx
New member
Username: cymeonx

Post Number: 2
Registered: 05-2011

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, May 20, 2011 - 09:58 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Hi Randem

I have a VB6 executable which I would like to automatically run in Win 7 and therefore it needs an administrator authorized install. I followed your instructions at:
http://www.randem.com/vistaadmin.html

As mentioned, the instructions are easy to follow and precise. Everything seems good but when I run the exe after the modification I get the following install error:

Could not initialize installation. Could not extract Wise0132.dll to ", CRC does not match.

My understanding is that the CRC error occurs when an executable has been modified which is of course true; therefore I am wondering how this error could possibly be avoided by everyone else.

By the way, the exe runs properly with admin rights manually assigned.

Many thanks in advance. All the best!
Top of pagePrevious messageNext messageBottom of page Link to this message

randem
Moderator
Username: randem

Post Number: 1906
Registered: 04-2004

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, May 20, 2011 - 04:54 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

You are welcome. I am not exactly sure of what you did could you point me to where you found the instructions and then a little detail on exactly what you did or didn't do to get the error you mentioned.
Top of pagePrevious messageNext messageBottom of page Link to this message

cymeonx
New member
Username: cymeonx

Post Number: 1
Registered: 05-2011

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, May 20, 2011 - 02:24 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Thanks for your excellent and precise instructions to run a vb6 exe as administrator. When I follow the instructions I get the following error:

Could not initialize installation. CRC does not match.

I am not an expert at this and just wonder if there is any help out there.

Many thanks

Chris

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image

Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration