Here's the scenario. User A installs our radio player. They get Skin0 and their registry points their player to look in the Skin0 folder for its skin. **Our setup already supports multiple users who's players use the same skin** But I need to add the ability for different users to use players that use different skins.
What's happening is If User B installs a player that needs the skin files located in the Skin1 folder (component), the Skin1 folder overwrites the Skin0 folder. User B's player works but now User A's player doesn't because its skin folder is gone.
BTW, Skin0 and Skin1 are components that are selected using a switch case statement.
I need to leave the Skin0 folder remain installed and add the Skin1 folder along with the registry entries when a new user is added. The registry part is taken care of and working. I can't get the component to leave the existing Skin0 folder and add the Skin1 folder. Here's the code I am using:
switch (m_strSkinValue)
case "1.0.0.1": //if the skin value is 1.0.0.1 then install the default skin into the folder Skin1
ComponentSelectItem ( MEDIA, "Skin0" , FALSE);
ComponentSelectItem ( MEDIA, "Skin1" , TRUE);
ComponentTransferData ( MEDIA );
m_strSkinDir = TARGETDIR ^ "\\Skin1";
case "0.0.0.1": //if the skin value is 0.0.0.1 then install the default skin into the folder Skin0
ComponentSelectItem ( MEDIA, "Skin0" , TRUE);
ComponentSelectItem ( MEDIA, "Skin1" , FALSE);
ComponentTransferData ( MEDIA );
m_strSkinDir = TARGETDIR ^ "\\Skin0";
default:
MessageBox ("No Valid Skin Value.", INFORMATION);
This code only gets executed if a m_bAddUser is set to true. Is there a way to do what I am trying?
Thanks,