-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no SimplyVBUnit project template after install of 5.0.4 #12
Comments
I concur with @mcdon-ron . I installed vb6 fresh along with all sp's and am running it as admin. Using the setup script from sourceforge did indeed create the files in C:\Program Files (x86)\SimplyVBUnit 5.0 but it didn't copy the two necessary files to the C:\Program Files (x86)\Microsoft Visual Studio\VB98\Template\Projects directory. Manually copying them did work. |
Hello, Trying to track this thing down. I attempt to pull the Visual Basic 6 directory from the Registry. It seems to be hit or miss. I've extended to look at other Registry locations I'd expected a directory to be found. In this fix I first check for an entry of Could either of you check registry locations Thanks for any help. |
Hi Kelly And at HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\6.0\Setup\Microsoft Visual Basic I found: Noting that neither key shows the full path to the correct target location: C:\Program Files (x86)\Microsoft Visual Studio\VB98\Template\Projects |
Thanks for checking. I do complete the path to which ever registry entry is found, 'Projects' for the first and 'Template\Projects' for the second. So it seems the install should have been able to build the correct path from the I've added a wizard page during install that allows the user to select the Could you uninstall |
Sure, glad to lean in. So here's what I did: Started VB6 as Admin and verified that project templates no longer listed It appears that it only fails on a completely virgin computer. If it would be helpful, I'm willing to purge my system again, crush my user profile and reinstall to verify if it's related to a user profile issue. Let me know what you'd like me to check - I'm ready to help.... Results: |
Any luck or is there anything I can do to assist/test? |
I don't really know where to try. If you're correct that it fails to copy the files on a virgin computer, then maybe running the installer as Admin will make a difference. What you've shown is that the installer is correctly discovering the location of the project templates folder and at least attempting to copy them. There's not much more I can really do. If the admin privilege solves the issue then I think I can make the installer run with elevated permissions required. |
Oh, I guess I forgot to mention: I did the entire install as Admin so that’s already accounted for…
|
If they'd still help, attaching what I have for |
this issue looks the same as https://sourceforge.net/p/simplyvbunit/discussion/415411/thread/807817da/
looks like the install is trying to get the path by reading the registry
RegQueryStringValue(HKCU,'Software\Microsoft\Visual Basic\6.0', 'TemplatesDirectory', TemplateDir);
which doesn't exist on my machine
I think it could use the ProductDir registry key in
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\6.0\Setup\Microsoft Visual Basic
to get the install folder for vb6, then append "TemplatesDirectory". I couldn't say if people are seeing different registry keys for their VB6 setups, or why the key for "TemplatesDirectory" doesn't exist on my machine.copying "frmTestRunner.frm" and "SimplyVBUnit Project.vbp" from "C:\Program Files (x86)\SimplyVBUnit 5.0\Source\Projects" to "C:\Program Files (x86)\Microsoft Visual Studio\VB98\Template\Projects" got the templates added.
The text was updated successfully, but these errors were encountered: