This works fine, everything is installed in the correct directory. But when I do a repair/modify, there are several errors:
There is a new directory: Program Files\\My Program
The shortcut in the startmenu is pointing to Program Files\\My Program\\program.exe
--------
When I deselect some items upon install, but when I do a modify all features are selected. What do I do wrong?
First, if you did any work (or builds) with the non-public beta, uninstall all of them. The non-public beta had an issue which might be causing this problem.
Next, rebuild the base product (and any patches) in the public beta version, and try again.
Finally, if you still have problems, please provide an exact step-by-step sequence of reproducing them, including UI choices made in the installer such as TARGETDIR, Start Menu, etc...
I took a look at your project. It might be happening because you are using an unqualified TARGETDIR path, and an empty STARTMENU value when initializing the variables. Try to use a fully qualified TARGETDIR and a properly initialized STARTMENU variable and see what happens that way (template projects already do this for you).