gridman
Pilgrim

Accessing SRCDISK in Custom Action

I have a Basic MSI project and I need to access SRCDISK in an InstallScript custom action.

For some reason, SRCDISK has the value of C: instead of the CD-ROM drive.

What should I be doing instead?
Labels (1)
0 Kudos
2 Replies
Not applicable

Re: Accessing SRCDISK in Custom Action

You can use SETUPEXEDIR property instead of SRCDISK, then get it by GetDisk function.
0 Kudos
gridman
Pilgrim

Re: Accessing SRCDISK in Custom Action

That worked. Thank you!
0 Kudos