Quote Originally Posted by linder View Post
John,

'If %SHORTCUTDT% Equals "1" Then' only works if you have a checkbox in a custom dialog. If you are using a checkbox in a standard dialog then you have to use the 'Equals "1" on Position' option.
Yes, that is where I was going wrong.

BTW, I would suggest to use the Shortcut Visualizer to add the above shortcuts. And it's not a good idea to mix per-user and per-machine shortcuts (you are doing this in your code snippet).
I just added all three CSIDL locations whilst trying to see which one might work. After I fixed my IF test error, I ended up using the %_CSIDL_DESKTOP%. This seems to work fine.

Thanks

John Griffiths