Pregunta

i have made a windows form application in which i am using some sound files. i saved these file into new folder which i integrated in program files folder. now when i install it into my computer, it works fine. but in other computer, it is giving error. error is because of folder i integrated in setup is now in program files(x86) folder. so application can't find sound files. i Just want that when my setup installs, the folder must be copied into program files folder, Not in program files(x86) folder.

Can anybody tell me how to solve this problem?

Thanks in Advance

¿Fue útil?

Solución

Your software will be installed into Program File folder only if it's x64 version, otherwise it will be automatically installed in Program Files(x86). The good practise is not to hard-code paths at all, just set the path to be PathOfRunnedExe + \Sounds or something like that.

You can if you use some third-party installation wizards to get a chance to change installation path for your software.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top