Good Morning,
I have written a WiX installer that works perfectly with Windows XP but when installing to a Windows 7 box I am running into difficulty with Registry Entries. What I need to do is add a HKLM entry as well as the registry entry for the program to show in the start menu. Here is the code i am using for both types of entry:
<!-- Create the registry entries for the program -->
<DirectoryRef Id="TARGETDIR">
<Component Id="RegistryEntriesInst" Guid="...">
<RegistryKey Root="HKLM"
Key="Software\$(var.Manufacturer)\$(var.ProductName)"
Action="createAndRemoveOnUninstall">
<RegistryValue Type="string" Name="installed" Value="true" KeyPath="yes"/>
</RegistryKey>
</Component>
<Component Id="RegistryEntriesVer" Guid="...">
<RegistryKey Root="HKLM"
Key="Software\$(var.Manufacturer)\$(var.ProductName)"
Action="createAndRemoveOnUninstall">
<RegistryValue Type="string" Name="version" Value="$(var.ProductVersion)" KeyPath="yes"/>
</RegistryKey>
</Component>
</DirectoryRef>
<!-- To add shortcuts to the start menu to run and uninstall the program-->
<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="...">
<Shortcut Id="ApplicationStartMenuShortcut"
Name="$(var.ProductName)"
Description="..."
Target="[SERVERLOCATION]$(var.Project.TargetFileName)"
WorkingDirectory="SERVERLOCATION"/>
<Shortcut Id="UninstallProduct"
Name="Uninstall $(var.ProductName)"
Description="..."
Target="[System64Folder]msiexec.exe"
Arguments="/x [ProductCode]"/>
<RemoveFolder Id="SERVERLOCATION" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\$(var.Manufacturer)\$(var.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>
Any help/suggestions that can be given will be appreciated. On a side note the registry permissions are the same on the XP and 7 computers.
Thanks
Safari on iPhone has a feature that lets you create a shortcut on your home screen for a web page. Is it possible for other apps to implement similar functionality? I'd like to give my users a quick way to jump to a specific item in my iPhone application.
I've just noticed that DataGridViews have a default shortcut so that whenever you press "Ctrl + H", the DataGridView's editing control backspaces, and can delete your entire selection within the cell.
This can get quite annoying since I want to open a Replace box whenever Ctrl H is pressed. Is there any way to stop the backspacing while still being able to use it to open the replace box?
I'm running C# 2.0, but I could update my application to 3.5 if the newer C# has a solution.
Hi,
My textmate suddenly stopped recognizing comments in code and the shortcut for commenting out code (Command + /).
I have found Comments in the Bundle Editor for HTML, but it doesn't look like I can set an activation key for it or anything.
Does anyone have any experience with this part of TextMate?
cheers!
Have a little conundrum, when I debug my air app. It goes through the build process and seemingly launches. I can see the process in windows task manager, but can not see the actual application.
Kind of strange I know. If anyone has had the same problem and can offer a shortcut to success, I'd much appreciate a pointer.
Thanks
I've been watching some of the WWDC 2009 videos which include some video demos in XCode. The presenters are using some sort of macro or script bound to a keyboard shortcut to automatically insert some pre-prepared code at the current caret location. Each time they press the key, the next prepared snippet is inserted.
Does anybody know how this is done?
Here is an old add in to quickly comment out HTML code. Maybe I am missing it, but it seems like there is a shortcut in VS2010 to scratch your tail with one click but commenting out HTML code is still awkward as hell.
What's the easiest way to get a function like this working?
Can I expect any add-ins that were written for older versions of VS to work in VS2010 w/o an upgrade?
Anyone find where when you open a certain solution (that contains multiple projects) and compile that you're not seen some warnings that your collegues see when compiling the exact same solution at the exact same state? The code is the same.
I depend highly on the warnings as a shortcut to find unused methods, etc. But I get nothing during compile.. only a couple based on references to user controls, etc.
How is it possible to have an executable run automatically on startup? Is it possible by having a shortcut to the .exe in the startup folder in the All programs section of the start menu? If that is correct, what is the full directory of the start up folder? C:/
Well, I'm wondering is there's any way to link a single key on my keyboard to a file. I wish to execute the file upon pressing the key. I tried using the built in shortcut hotkey system and it didn't work out for me. It really needs to be one single key.
I'm calling Powershell like so:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -noninteractive -nologo -file "C:\Users\dummy\Documents\dev\powershell\samples\test.ps1"
I'm calling it from a python script, but the same problem can be observed if called via a shortcut. I thought the -NonInteractive flag would cause Poweshell to execute in a hidden window, but it doesn't. Is there a way of supressing the console window when calling Powershell from an external application?
Solution based on Johannes Rössel suggestion
st_inf = subprocess.STARTUPINFO()
st_inf.dwFlags = st.inf.dwFlags | subprocess.STARTF_USESHOWWINDOW
Popen(["notepad"], startupinfo=st_inf)
How do i change the comment style used in visual studio from // to /*...*/ ?
I use the comment shortcut mostly for commenting out code temporarily.
It annoys me that if i select bool abc in the code below and press ctrl k+c
void func( bool abc ) {}
it produces
//void func( bool abc ) {}
instead of
void func( /*bool abc*/ ) {}
Regards
Henrik
What is the best way to put together a "shortcut" to launch a IronRuby REPL with some .NET assemblies preloaded? I think there is a way to do this in Powershell (via Snapin or Module) and I'm looking for something similar in IronRuby.
Hi,
I download and install izpack to create installer.But There is no shortcut icon to run it.Can any one tell me how to run izpack and how to create installer through izpack.(I have the jar file).
Hi everyone!
I'm having problems with putting a favicon on my website!
I have this code
<link rel="shortcut icon" type="image/ico" href="img/favicon.ico">
And for some reason Firefox shows the favicon fine, but on webkit browsers its not showing up. I tried Google Chrome and Safari on a Mac and its not showing up, do I need to do something for these browsers?
I have a GWT app that when launched it takes you to a page with just a menu. So as a shortcut type thing I would like the users to be able to go straight to the page they want. So if the default start page is x, the should be able to say x/add and it will take them to the add page. How would I get that in gwt? Do I need a bunch of different entry points?
Consider a snippet of from a .css file in Visual Studio 2010 to be commented out.
Normally Ctrl-E + Ctrl-C will comment your selected HTML and other source code.
Highlighting CSS code results in:
The key combination is bound to command (Comment Selection) which is not currently available.
To comment CSS in Visual Studio 2010, is there a toolbar or keyboard shortcut to comment the highlighted text for you?
hi guys...
I am here to change the uppercase table name present in the stored procedures. I have got nearly 100 stored procedures. is there any shortcut way so that i can change all the uppercase table names to lowercase within short time...
Hi,
I m developing applcaiton in VS2008 VC++.net
I want to move the application to secondary monitor.Not by clicking and dragging using mouse.
Is there any function like MoveToMonitor by pressing the button or any shortcut keys.
Then it should move to secondary monitor.
Can somebody suggest an easy way to get a reference to a file as a String/InputStream/File/etc type object in a junit test class? Obviously I could paste the file (xml in this case) in as a giant String or read it in as a file but is there a shortcut specific to Junit like this?
public class MyTestClass{
@Resource(path="something.xml")
File myTestFile;
@Test
public void toSomeTest(){
...
}
}
Many of the methods in scalaz have symbolic equivalents, such as forever and 8 (of course, I have this the wrong way round, the symbolic methods really have ASCII equivalents).
The project contains a live templates XML file for IDEA so these can be auto-completed, I believe by using the forever+TAB shortcut (in the above instance).
I can't figure out how to import this live template into IDEA and actually use it, though. How can I do that?
I know this can be done for Windows and that XGrabKey can be used for X11, but what about Mac OS X? I want create a class that allows setting shortcut keys that can be invoked even when the application windows are inactive.
When I try to select the following "File Open Web Site" or use the shortcut key "Shift + Alt + O" (which does the same), Visual Studio 2008 hangs with the loading mouse icon for about 8-10 seconds then the file.
But if I do "File Open Project/Solution.." or "File Open File..." the explorer window comes up in under a second, instantly most times.
Computer Specs:
Windows 7 x64
Visual Studio 2008 Pro Edition with Service Pack 1
Intel Core2 Due e6420 @ 3.2GHz
4GB DDR2
Is there any way to disable the "Press ENTER or type command to continue" prompt that appears after executing an external command?
EDIT: Found a workaround: Add an extra <CR> to the shortcut in my .lvimrc.
map <F5> :wall!<CR>:!sbcl --load foo.cl<CR><CR>
Any better ideas?