We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Manish

Can I change the value of TARGETDIR from custom action

I have a Custom action (.dll) for InstallInitialize. I want to install my product at a location relative to my other already installed application. Can I change the TARGETDIR. I tried using MsiSetProperty, but msi gave an error ("main class not found") and got hung.

Please help!!
Manish

How do I get the Installation path while uninstalling

I got this one again. I used MsiSetTargetPath and passed "TARGETDIR" and the path I want it to install. (The "main class" problem was due to some other reason and has been reolved)

It works fine.

Uninstall also works fine. But for one problem - When I use MsiGetTargetPath and pass "TARGETDIR", it returns the default path for installation and NOT the one I had set with MsiSetTargetPath.

Please help as I am new to MSI,

Regards,

Manish
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

When does MsiGetTargetPath return the default path instead the one you set?

I understand install works and so does the uninstall. What does go wrong?
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”